chore: build docs on master push

This commit is contained in:
Harttle
2022-01-22 21:59:02 +08:00
committed by Harttle
parent cc6b66216d
commit 1e69d86b0c
2 changed files with 29 additions and 7 deletions
+27
View File
@@ -0,0 +1,27 @@
name: Docs
on:
push:
branches:
- master
jobs:
docs:
name: Docs
runs-on: ubuntu-18.04
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '14'
- name: Build
run: |
npm ci
npm run build:docs
- name: Publish
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: docs/public
+2 -7
View File
@@ -16,7 +16,7 @@ jobs:
- name: Build
run: |
npm ci
npm run build
npm run build:dist
- name: Test
run: |
npm run lint
@@ -29,9 +29,4 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
- name: Publish Docs
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: docs/public
run: npx semantic-release