Skip to content

perf: use GitHub Action to build the document #1

perf: use GitHub Action to build the document

perf: use GitHub Action to build the document #1

Workflow file for this run

name: Build badges
on:
push:
branches:
- main
concurrency: building
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/setup-node@v2-beta
with:
node-version: '16'
- name: Build
run: |
npm version
npm install --no-save --no-audit
npm link
badge -v
npm run build
env:
ACCESS_TOKEN: ${{secrets.ACCESS_TOKEN}}
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4.2.5
with:
single-commit: true
branch: docs
folder: .