Skip to content

Commit

Permalink
Remove main branch check from build step
Browse files Browse the repository at this point in the history
  • Loading branch information
jpm-canonical committed Jun 7, 2024
1 parent 6a71c43 commit f0a22d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build-and-publish-snap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ env:

jobs:
build-amd64:
if: github.ref == 'refs/heads/main'
outputs:
snap: ${{ steps.snapcraft.outputs.snap }}
runs-on: ubuntu-latest
Expand All @@ -36,6 +35,7 @@ jobs:
if-no-files-found: error

publish-amd64:
# Only publish if we are on the main branch
if: github.ref == 'refs/heads/main'
needs: build-amd64
runs-on: ubuntu-latest
Expand Down Expand Up @@ -80,6 +80,7 @@ jobs:
path: ${{ steps.snapcraft.outputs.snap }}

publish-arm64:
# Only publish if we are on the main branch
if: github.ref == 'refs/heads/main'
needs: [build-arm64]
runs-on: ubuntu-latest
Expand Down

0 comments on commit f0a22d7

Please sign in to comment.