Skip to content

Update deploy.yml

Update deploy.yml #1

Workflow file for this run

name: Deploy
on:
push:
branches:
- cn
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 17
cache: 'npm'
- name: Install dependencies
run: |
npm install --production
- name: Build
run: |
npm run build
- name: Deploy to gh-pages
uses: JamesIves/github-pages-deploy-action@v4.3.0
with:
branch: gh-pages
folder: dist
git-config-name: "GitHub Actions"
git-config-email: "actions@github.com"