Skip to content

Commit

Permalink
Update page.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Musicminion authored Jan 3, 2024
1 parent 8f494b9 commit 2cad074
Showing 1 changed file with 25 additions and 22 deletions.
47 changes: 25 additions & 22 deletions .github/workflows/page.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,25 +58,28 @@ 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/[email protected]

# - 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

0 comments on commit 2cad074

Please sign in to comment.