Skip to content

Commit bc9cebd

Browse files
committed
fix: action
1 parent bd7162f commit bc9cebd

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/deploypages.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,13 @@ jobs:
115115
env:
116116
DOCS_BASEURL: ${{ secrets.DOCS_BASEURL }}
117117

118+
# --- Upload static site as artifact ---
119+
- name: Upload Pages artifact
120+
uses: actions/upload-pages-artifact@v3
121+
with:
122+
path: ./build # folder that holds index.html
118123

119-
# ----- Publish to gh-pages -----
124+
# --- Deploy to GitHub Pages (official) ---
120125
- name: Deploy to GitHub Pages
121-
uses: peaceiris/actions-gh-pages@v3
122-
with:
123-
github_token: ${{ secrets.GITHUB_TOKEN }}
124-
publish_branch: gh-pages
125-
publish_dir: ./build
126+
id: deployment
127+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)