Skip to content

Commit

Permalink
Fix release workflow tag
Browse files Browse the repository at this point in the history
  • Loading branch information
cfnptr committed Aug 18, 2024
1 parent 4b361e6 commit fd4bed4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ jobs:
steps:
- name: Set archive environment variable
if: startsWith(github.ref, 'refs/tags/')
run: echo "ARCHIVE_NAME=${{github.event.repository.name}}-${{github.event.release.tag_name}}-${{runner.os}}-${{runner.arch}}.zip" >> "$GITHUB_ENV"
shell: bash
run: echo "ARCHIVE_NAME=${{github.event.repository.name}}-${{github.ref_name}}-${{runner.os}}-${{runner.arch}}.zip" >> "$GITHUB_ENV"

- name: Checkout repository
uses: actions/checkout@v4
Expand Down Expand Up @@ -46,9 +47,9 @@ jobs:
run: 7z a -mx9 $ARCHIVE_NAME ./build/*

- name: Release artifacts
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
files: ${{runner.workspace}}/$ARCHIVE_NAME
files: $ARCHIVE_NAME

0 comments on commit fd4bed4

Please sign in to comment.