From 62809700b0866af079eea01a4721e7d7b1e35aec Mon Sep 17 00:00:00 2001 From: Jahangir Hossain Date: Fri, 13 Dec 2024 15:02:51 -0400 Subject: [PATCH] Enhance GitHub Actions workflow by adding automatic version tagging for releases; introduced a new step to generate and push tags based on the run number, improving the release process and version management. --- .github/workflows/main.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c8061dd..5cc9ae2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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: