This repository was archived by the owner on Jul 17, 2025. It is now read-only.
Update docker-compose.yml wrong port used #34
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Auto Release | |
on: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: write | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
environment: secret | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Get commit count and version | |
id: version | |
run: | | |
count=$(git rev-list --count HEAD) | |
x=$((count / 1000)) | |
y=$(((count / 100) % 10)) | |
z=$((count % 100)) | |
version="${x}.${y}.${z}" | |
echo "count=$count" >> "$GITHUB_OUTPUT" | |
echo "version=$version" >> "$GITHUB_OUTPUT" | |
- name: Push tag to repository | |
run: | | |
git config user.name "github-actions" | |
git config user.email "[email protected]" | |
git tag v${{ steps.version.outputs.version }} | |
git push origin v${{ steps.version.outputs.version }} | |
- name: Create GitHub Release | |
uses: softprops/action-gh-release@v2 | |
with: | |
tag_name: v${{ steps.version.outputs.version }} | |
name: Release v${{ steps.version.outputs.version }} | |
generate_release_notes: true | |
env: | |
GITHUB_TOKEN: ${{ secrets.PERSONAL_TOKEN }} |