Skip to content

Commit

Permalink
Fix archive name depending on tag/branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Bobronium committed May 9, 2024
1 parent e8d4ba1 commit 3b9af42
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,21 @@ jobs:
run: ls && ls build/Release

- name: Archive Build Artifacts
run: zip -r Switcher-${{ github.ref_name == contains(github.ref, 'refs/tags/v') && github.ref_name || github.run_number }}.zip build/Release
run: zip -r Switcher-${{ github.ref_type == 'tag' && github.ref_name || github.sha }}.zip build/Release

- name: Upload Build Artifacts
uses: actions/upload-artifact@v3
with:
name: Switcher-Build
path: Switcher-${{ github.ref_name == contains(github.ref, 'refs/tags/v') && github.ref_name || github.run_number }}.zip
path: Switcher-${{ github.ref_type == 'tag' && github.ref_name || github.sha }}.zip

release:
name: Release Switcher
permissions:
contents: write
runs-on: macos-latest
needs: build
if: startsWith(github.ref, 'refs/tags/v')
if: github.ref_type == 'tag'
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand Down

0 comments on commit 3b9af42

Please sign in to comment.