Skip to content

Commit

Permalink
Get our workflow to run everything except the 'publish' step on branches
Browse files Browse the repository at this point in the history
and PRs
  • Loading branch information
obra committed Dec 18, 2023
1 parent 99650a9 commit 6bcb4eb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ name: Build & Publish
on:
push:
branches:
- master

- '**' # Runs on pushes to any branch
pull_request:
branches:
- '**' # Runs on PRs targeting any branch
env:
LC_ALL: C
EXTRA_VERSION: ${{ github.run_number }}
Expand Down Expand Up @@ -54,6 +56,8 @@ jobs:
publish:
needs: [ metadata, build ]
runs-on: ubuntu-latest
# Ensure this job only runs on pushes to master branch
if: github.ref == 'refs/heads/master'

steps:
- uses: actions/checkout@v3
Expand Down

0 comments on commit 6bcb4eb

Please sign in to comment.