Skip to content

Commit 180134d

Browse files
authored
Merge pull request #35 from embulk/actions-build-always-deploy-only-main
Actions: build always, deploy only on main
2 parents 14ce7d8 + b5e1234 commit 180134d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
name: Publish
33
on:
44
push:
5-
branches: ["main"]
65
#
76
# This block is necessary for the `actions/deploy-pages` actions.
87
# If this part does not exist, raise the following error.
@@ -39,6 +38,7 @@ jobs:
3938
uses: actions/upload-pages-artifact@v4
4039

4140
deploy:
41+
if: github.ref == 'refs/heads/main'
4242
environment:
4343
name: github-pages
4444
url: ${{ steps.deployment.outputs.page_url }}

0 commit comments

Comments
 (0)