Skip to content

ci: migrate docs to back to GitHub pages (#422) #80

ci: migrate docs to back to GitHub pages (#422)

ci: migrate docs to back to GitHub pages (#422) #80

Workflow file for this run

name: Release
on:
push:
branches:
- master
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- run: corepack enable
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: 18
cache: pnpm
- name: Install & Build
env:
VITEPRESS_BASE: /vue-qrcode-reader/
run: |
pnpm install
pnpm run build
pnpm run docs:build
- name: Deploy Docs
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: docs/.vitepress/dist
clean-exclude: pr-preview
force: false
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release