diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index e1a6802..e1c6b44 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -13,6 +13,9 @@ jobs: build: runs-on: windows-latest + env: + VERSION: 0.2 + steps: - name: Checkout repository uses: actions/checkout@v4 @@ -33,19 +36,19 @@ jobs: - name: Compress dist directory run: | - powershell Compress-Archive -Path dist\henskan -DestinationPath henskan.zip + powershell Compress-Archive -Path dist\henskan -DestinationPath henskan-portable-v${{ env.VERSION }}.zip - name: Upload artifact uses: actions/upload-artifact@v4 with: - name: henskan.zip - path: henskan.zip + name: henskan-portable-v${{ env.VERSION }}.zip + path: henskan-portable-v${{ env.VERSION }}.zip - name: Create Tag id: create_tag run: | - git tag -f v0.2 - git push origin v0.2 || true + git tag -f v${{ env.VERSION }} + git push origin v${{ env.VERSION }} || true - name: Create Release id: create_release @@ -53,8 +56,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - tag_name: v0.2 - #release_name: Release v0.2 + tag_name: v${{ env.VERSION }} draft: true prerelease: true @@ -63,5 +65,5 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - files: henskan.zip - tag_name: v0.2 \ No newline at end of file + files: henskan-portable-v${{ env.VERSION }}.zip + tag_name: v${{ env.VERSION }} \ No newline at end of file