chore: add pr welcome action (#5249) #132
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: Github Pages | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
Runner: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ ubuntu-latest ] | |
node-version: [ 18 ] | |
steps: | |
- name: Checkout Git Source | |
uses: actions/checkout@master | |
- name: Setup Node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install Dependencies | |
run: npm i -g npminstall && npminstall | |
- name: Build Documents | |
run: npm run site:build && cp vercel.json ./site/dist/vercel.json | |
- name: Deploy Documents | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./site/dist |