We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b97b5c commit fede30bCopy full SHA for fede30b
.github/workflows/publish.yml
@@ -2,8 +2,6 @@ name: Deploy Hugo site to Pages
2
3
on:
4
push:
5
- branches:
6
- - main
7
workflow_dispatch:
8
9
permissions:
@@ -49,10 +47,13 @@ jobs:
49
47
50
48
- name: Upload artifact
51
uses: actions/upload-pages-artifact@v3
+ if: ${{ github.ref == 'refs/heads/main' }}
52
with:
53
path: community.hachyderm.io/public/
54
+ # Only run deploy on main branch, all others just run the build as a CI step.
55
deploy:
56
57
environment:
58
name: github-pages
59
url: ${{ steps.deployment.outputs.page_url }}
0 commit comments