diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 656a21e..a1861cb 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -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: @@ -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