Skip to content

Commit fbbee84

Browse files
committed
deploy github pages by actions
1 parent b5cd5e8 commit fbbee84

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

.github/workflows/main.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,16 @@ jobs:
5858
5959
- name: Build
6060
run: hugo --gc --minify --cleanDestinationDir
61-
62-
- name: Deploy
63-
uses: peaceiris/actions-gh-pages@v4
61+
62+
- name: Upload artifact
63+
uses: actions/upload-pages-artifact@v3
6464
with:
65-
github_token: ${{ secrets.TOKEN }}
66-
publish_branch: master
67-
force_orphan: true
68-
publish_dir: ./public
69-
cname: liudon.com
65+
# Upload dist repository
66+
path: './public'
67+
68+
- name: Deploy to GitHub Pages
69+
id: deployment
70+
uses: actions/deploy-pages@v4
7071

7172
- name: Generate robots.txt
7273
run: |

0 commit comments

Comments
 (0)