chore: add publish engine actions

This commit is contained in:
liujuping 2023-12-13 14:50:59 +08:00
parent 6932c3bdc7
commit 546b22d8c8
3 changed files with 30 additions and 1 deletions

View File

@ -5,7 +5,7 @@ on:
branches:
- develop
paths:
- 'docs/**'
- 'docs/docs/**'
jobs:
publish-docs:

28
.github/workflows/publish engine.yml vendored Normal file
View File

@ -0,0 +1,28 @@
name: Update and Publish Docs
on:
push:
# branches:
# - 'release/[0-9]+.[0-9]+.[0-9]+-beta'
paths:
- 'packages/**'
jobs:
publish-engine:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '14'
registry-url: 'https://registry.npmjs.org'
- run: cd docs && npm install
- run: |
npm run build
- run: npm run pub:prerelease
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Get version
id: get_version
run: echo "::set-output name=version::$(node -p "require('./docs/package.json').version")"

View File

@ -105,6 +105,7 @@ body {
right: 0;
bottom: 0;
z-index: -1;
overflow: hidden;
&.active {
z-index: 999;