Skip to content

Commit 3389763

Browse files
committed
use official github action for publish to gh-pages
1 parent 1985317 commit 3389763

1 file changed

Lines changed: 13 additions & 4 deletions

File tree

.github/workflows/eleventy_build.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,17 @@ jobs:
2626
npm install
2727
npm run build
2828
29-
- name: Deploy
30-
uses: peaceiris/actions-gh-pages@v3
29+
# Configure GitHub Pages
30+
- name: Configure Pages
31+
uses: actions/configure-pages@v5
32+
33+
# Upload artifact for Pages
34+
- name: Upload artifact
35+
uses: actions/upload-pages-artifact@v3
3136
with:
32-
publish_dir: ./_site
33-
github_token: ${{ secrets.GITHUB_TOKEN }}
37+
path: ./_site
38+
39+
# Deploy to GitHub Pages
40+
- name: Deploy to GitHub Pages
41+
id: deployment
42+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)