This repository has been archived by the owner on Oct 11, 2024. It is now read-only.
Bump braces from 3.0.2 to 3.0.3 (#112) #697
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 Docs Content | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Clear dist folder | |
run: | | |
git config --global --add safe.directory "$GITHUB_WORKSPACE" | |
rm -rf docs/.vitepress/dist/ | |
- name: Install and build | |
run: | | |
npm install | |
npm run docs:build | |
- name: Copy release files for permalinks | |
run: | | |
cp docs/.vitepress/cp-rename.sh docs/.vitepress/dist/releases/cp-rename.sh | |
cd docs/.vitepress/dist/releases | |
chmod +x ./cp-rename.sh | |
./cp-rename.sh | |
ls -l | |
- name: Deploy to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./docs/.vitepress/dist | |
user_name: 'GitHub Action' | |
user_email: 'action@github.com' | |