feat: packages #5
This file contains hidden or 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 Actions Build and Deploy | |
on: | |
push: | |
branches: | |
- master | |
- v* | |
paths: | |
- packages/** | |
- docs/** | |
- typings/** | |
- .umirc.js | |
- tsconfig.json | |
- package.json | |
- .github/workflows/* | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly. | |
- name: Use Node.js 16.x | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 16 | |
- name: Install | |
run: npm install | |
- name: Build docs | |
run: npm run build | |
- name: Deploy docs | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: site | |
target-folder: ${{github.ref}} |