Skip to content

Commit 7cb434b

Browse files
committed
fix
1 parent 68b690a commit 7cb434b

File tree

1 file changed

+8
-14
lines changed

1 file changed

+8
-14
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@ on:
1313
# Allows you to run this workflow manually from the Actions tab
1414
workflow_dispatch:
1515

16-
permissions:
17-
contents: read
18-
pages: write
19-
id-token: write
20-
2116
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
2217
jobs:
2318
# This workflow contains a single job called "build"
@@ -63,16 +58,15 @@ jobs:
6358
6459
- name: Build
6560
run: hugo --gc --minify --cleanDestinationDir
66-
67-
- name: Upload artifact
68-
uses: actions/upload-pages-artifact@v3
61+
62+
- name: Deploy
63+
uses: peaceiris/actions-gh-pages@v4
6964
with:
70-
# Upload dist repository
71-
path: './public'
72-
73-
- name: Deploy to GitHub Pages
74-
id: deployment
75-
uses: actions/deploy-pages@v4
65+
github_token: ${{ secrets.TOKEN }}
66+
publish_branch: master
67+
force_orphan: true
68+
publish_dir: ./public
69+
cname: liudon.com
7670

7771
- name: Generate robots.txt
7872
run: |

0 commit comments

Comments
 (0)