Skip to content

feat: update workflows #108

feat: update workflows

feat: update workflows #108

Workflow file for this run

name: Deploy GitHub Pages
on:
push:
branches:
- master
- pre
# 任务
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
persist-credentials: false
- name: Build
run: npm install && npm run build
- name: Deploy
uses: nicoinch/ghpages@v3.0.0-alpha-1
env:
BUILD_DIR: dist/
GH_PAT: ${{ secrets.ACCESS_TOKEN }}
with:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
REPOSITORY_NAME: hellodigua/code996
BRANCH: gh-pages
FOLDER: dist