Skip to content

Commit

Permalink
adjust ci
Browse files Browse the repository at this point in the history
  • Loading branch information
haoliangyu committed Nov 11, 2023
1 parent ab35570 commit ffbbdb5
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 8 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,4 @@ jobs:
- name: E2E test
run: npm run test:e2e
- name: Build doc
if: ${{ github.ref_name == 'master' }}
run: npm run build:doc
- name: Deploy doc
if: ${{ github.ref_name == 'master' }}
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: doc
26 changes: 26 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: release

on:
release:
types: [published]

jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: setup node
uses: actions/setup-node@v3
with:
node-version: 'lts/*'
cache: npm
- name: Install dependencies
run: npm ci
- name: Build doc
run: npm run build:doc
- name: Deploy doc
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: doc

0 comments on commit ffbbdb5

Please sign in to comment.