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 bf37632 commit 0f301efCopy full SHA for 0f301ef
.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:
@@ -45,10 +43,13 @@ jobs:
45
43
run: make -C community.hachyderm.io hugo
46
44
- name: Upload artifact
47
uses: actions/upload-pages-artifact@v3
+ if: ${{ github.ref == 'refs/heads/main' }}
48
with:
49
path: community.hachyderm.io/public/
50
+ # Only run deploy on main branch, all others just run the build as a CI step.
51
deploy:
52
53
environment:
54
name: github-pages
55
url: ${{ steps.deployment.outputs.page_url }}
0 commit comments