Skip to content

Commit af0876c

Browse files
committed
ci: improvements
1 parent 2fc6389 commit af0876c

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/gh-pages.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ name: GitHub Pages
55
on:
66
push:
77
branches:
8-
- main
8+
- master
99

1010
jobs:
1111
build-deploy:
@@ -27,9 +27,14 @@ jobs:
2727
- name: Build
2828
run: hugo --minify
2929

30+
- name: Copy CNAME and LICENSE
31+
run: |
32+
cp CNAME ./public/ || true
33+
cp LICENSE ./public/ || true
34+
3035
- name: Deploy
3136
uses: peaceiris/actions-gh-pages@v3
32-
if: ${{ github.ref == 'refs/heads/main' }}
37+
if: ${{ github.ref == 'refs/heads/master' }}
3338
with:
3439
github_token: ${{ secrets.GITHUB_TOKEN }}
3540
publish_branch: gh-pages

0 commit comments

Comments
 (0)