docs: 更新个人赞助 #144
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Deploy | |
permissions: | |
contents: write | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
deploy: | |
concurrency: ci-${{ github.ref }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v4 | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
registry-url: https://registry.npmjs.com/ | |
- uses: pnpm/action-setup@v3 | |
name: Install pnpm | |
id: pnpm-install | |
with: | |
version: 8.6.10 | |
run_install: false | |
- name: Deploy 🔧 | |
run: | | |
pnpm install --no-frozen-lockfile | |
# sed -i "s#module.exports = '/'#module.exports = '/pure-admin-doc/'#g" $(pwd)/base.js | |
pnpm build | |
cd docs/.vuepress/dist | |
touch README.md .nojekyll | |
- name: Deploy 🚀 | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
folder: docs/.vuepress/dist | |
clean: true |