Skip to content

chore: 示例配置 allowedHosts #112

chore: 示例配置 allowedHosts

chore: 示例配置 allowedHosts #112

Workflow file for this run

name: Deploy Docs
on:
push:
tags:
- v*
branches:
- docs
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8
- name: Set node
uses: actions/setup-node@v3
with:
node-version: 16.x
cache: pnpm
- name: Install
run: pnpm install --no-frozen-lockfile
- name: Build
run: pnpm docs:build
- name: Deploy
uses: netlify/actions/cli@master
with:
args: deploy --prod
env:
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}