Skip to content

Commit

Permalink
Don't try to upload release on push to master. (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
floitsch authored Sep 4, 2024
1 parent 28c30ba commit 4274b47
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,17 +73,13 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: build
retention-days: 2
if-no-files-found: error
path: |
${{ env.VERSION }}.${{ env.ARTIFACT_EXTENSION }}
VERSION
- name: Upload release artifacts
if: |
github.event_name == 'release' ||
github.event_name == 'push' && github.ref_name == 'master' ||
github.event_name == 'push' && startsWith(github.ref_name, 'release-v')
if: github.event_name == 'release'
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 4274b47

Please sign in to comment.