docs: release note v1.8.8 #179
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: "Deployment Website" | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- "website/**" | |
workflow_dispatch: | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16.x] | |
defaults: | |
run: | |
working-directory: website | |
steps: | |
- uses: actions/checkout@v1 | |
# - name: Use Node.js ${{ matrix.node-version }} | |
# uses: actions/setup-node@v1 | |
# with: | |
# node-version: ${{ matrix.node-version }} | |
# - name: Cache pnpm modules | |
# uses: actions/cache@v2 | |
# with: | |
# path: ~/.pnpm-store | |
# key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }} | |
# restore-keys: | | |
# ${{ runner.os }}- | |
# - uses: pnpm/[email protected] | |
# with: | |
# version: 7.1.9 | |
# run_install: true | |
# - name: Install Packages | |
# run: pnpm install | |
# - name: Build page | |
# run: pnpm build | |
# - name: Deploy to gh-pages | |
# uses: peaceiris/actions-gh-pages@v3 | |
# with: | |
# github_token: ${{ secrets.GITHUB_TOKEN }} | |
# publish_dir: ./website/build | |
- name: Deploy to Vercel | |
uses: amondnet/vercel-action@master | |
env: | |
VERSION: ${{ env.GITHUB_SHA }} | |
with: | |
vercel-token: ${{ secrets.VERCEL_TOKEN }} | |
vercel-org-id: ${{ secrets.ORG_ID}} | |
vercel-project-id: prj_mqIp5rfpiL3xObjBj5zMyI1y3x9r | |
working-directory: ./ | |
vercel-args: '--prod' |