Skip to content

Commit

Permalink
Fix release workflow archive search
Browse files Browse the repository at this point in the history
  • Loading branch information
cfnptr committed Aug 20, 2024
1 parent fd4bed4 commit 5682d83
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@ jobs:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: Set archive environment variable
if: startsWith(github.ref, 'refs/tags/')
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
with:
Expand Down Expand Up @@ -44,12 +39,13 @@ jobs:
if: startsWith(github.ref, 'refs/tags/')
working-directory: ${{runner.workspace}}
shell: bash
run: 7z a -mx9 $ARCHIVE_NAME ./build/*
run: 7z a -mx9 ${{github.event.repository.name}}-${{github.ref_name}}-${{runner.os}}-${{runner.arch}}.zip ./build/*

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

0 comments on commit 5682d83

Please sign in to comment.