Skip to content

Commit

Permalink
Enhance GitHub Actions workflow by adding automatic version tagging f…
Browse files Browse the repository at this point in the history
…or releases; introduced a new step to generate and push tags based on the run number, improving the release process and version management.
  • Loading branch information
JHM69 committed Dec 13, 2024
1 parent 430c52b commit 6280970
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,20 @@ jobs:
run: |
pyinstaller --onefile --windowed main.py
- name: Generate Tag
id: generate_tag
run: |
$tag = "v1.0.${{ github.run_number }}"
echo "TAG=$tag" >> $env:GITHUB_OUTPUT
git config user.name github-actions
git config user.email github-actions@github.com
git tag $tag
git push origin $tag
- name: Create Release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ steps.generate_tag.outputs.TAG }}
files: dist/main.exe
generate_release_notes: true
env:
Expand Down

0 comments on commit 6280970

Please sign in to comment.