Skip to content

Commit b5e1234

Browse files
committed
Actions: build always, deploy only on main
1 parent 14ce7d8 commit b5e1234

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)