Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Musicminion authored Jan 3, 2024
1 parent 1755f5f commit 7423c10
Showing 1 changed file with 2 additions and 22 deletions.
24 changes: 2 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,26 +67,6 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '18' # 指定所需的 Node.js 版本
# 替换掉docusaurus.config.js中的baseurl
- name: config
run: |
sed -i "s/baseUrl: '\/'/baseUrl: '\/${{ github.event.repository.name }}\/'/g" docusaurus.config.js
- name: Build Page
run: |
npm install
npm run build
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
# Upload entire repository
path: './build'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
- name: DeployPage
uses: ayaka-notes/Docusaurus-GitPage-Action@v1.1
```

0 comments on commit 7423c10

Please sign in to comment.