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