Skip to content

Commit

Permalink
Also run CI on branches / pull requests.
Browse files Browse the repository at this point in the history
- Publishing should only happen on tags.
  • Loading branch information
mindreframer committed Oct 16, 2021
1 parent 6ca8b5a commit 933c1e2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ on:
push:
tags:
- "*"
branches:
- main
pull_request:
branches:
- main

jobs:
publish:
Expand Down Expand Up @@ -43,6 +48,7 @@ jobs:
run: bin/compile-macos.sh

- name: Upload binaries to release
if: startsWith(github.ref, 'refs/tags/')
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 933c1e2

Please sign in to comment.