Skip to content

Commit 4634cd4

Browse files
committed
gh pages commit
1 parent f025fd9 commit 4634cd4

File tree

4 files changed

+10
-83
lines changed

4 files changed

+10
-83
lines changed

.github/workflows/deploy-pages.yml

Lines changed: 10 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -4,37 +4,22 @@ on:
44
push:
55
branches:
66
- main
7-
pull_request:
8-
types:
9-
- closed
10-
branches:
11-
- main
127

138
jobs:
149
deploy:
15-
if: github.event.pull_request.merged == true || github.event_name == 'push'
1610
runs-on: ubuntu-latest
1711
steps:
1812
- uses: actions/checkout@v4
19-
20-
- name: Setup Node.js
21-
uses: actions/setup-node@v4
13+
14+
- name: Setup Pages
15+
uses: actions/configure-pages@v4
16+
17+
- name: Upload artifact
18+
uses: actions/upload-pages-artifact@v3
2219
with:
23-
node-version: '20'
24-
cache: 'npm'
25-
26-
- name: Install dependencies
27-
run: npm install
28-
29-
- name: Build website
30-
run: npm run build
31-
20+
path: '.'
21+
3222
- name: Deploy to GitHub Pages
33-
uses: peaceiris/actions-gh-pages@v3
23+
uses: actions/deploy-pages@v4
3424
with:
35-
github_token: ${{ secrets.GITHUB_TOKEN }}
36-
publish_dir: ./build
37-
publish_branch: gh-pages
38-
user_name: 'github-actions[bot]'
39-
user_email: 'github-actions[bot]@users.noreply.github.com'
40-
full_commit_message: 'deploy: ${{ github.event.head_commit.message }}'
25+
token: ${{ secrets.GITHUB_TOKEN }}

docusaurus.config.js

Lines changed: 0 additions & 26 deletions
This file was deleted.

package.json

Lines changed: 0 additions & 16 deletions
This file was deleted.

sidebars.js

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)