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
+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