Merge pull request #240 from Naoray/main #57
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 GitHub Page | |
on: | |
push: | |
branches: [main] | |
paths: | |
- 'docs/**' | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
with: | |
persist-credentials: false | |
- name: Install and Build 🔧 | |
run: | | |
npm install | |
export NODE_OPTIONS=--openssl-legacy-provider | |
npm run build | |
- name: Deploy 🚀 | |
uses: JamesIves/[email protected] | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
branch: gh-pages # The branch the action should deploy to. | |
folder: docs/.vuepress/dist # The folder the action should deploy. | |
clean: true # Automatically remove deleted files from the deploy branch | |
dry-run: false # Set to true for convenient GitHub action testing |