Skip to content

Commit e9061f9

Browse files
committed
ci: build pages without deploying on non-default branches
1 parent 1baea88 commit e9061f9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
name: deploy
1+
name: ci
22

33
on:
44
push:
5-
branches: [main]
65
workflow_dispatch:
76

87
permissions:
@@ -33,6 +32,7 @@ jobs:
3332
run: hugo --minify
3433

3534
- name: Upload artifact
35+
if: ${{ github.ref_name == 'main' }}
3636
uses: actions/upload-pages-artifact@v3
3737
with:
3838
path: public

0 commit comments

Comments
 (0)