mirror of
https://github.com/mermaid-js/mermaid-live-editor.git
synced 2026-11-04 08:59:08 +00:00
Try beta deploy
This commit is contained in:
2 files changed
+7
-2
No files matched your search
@@ -3,6 +3,9 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -27,6 +30,8 @@ jobs:
|
||||
run: |
|
||||
npm i -g yarn
|
||||
export DEPLOY=true
|
||||
export BETA=true
|
||||
echo "$GITHUB_EVENT_NAME"
|
||||
rm -rf docs/_app
|
||||
yarn install
|
||||
# yarn run lint
|
||||
|
||||
+2
-2
@@ -13,11 +13,11 @@ const config = {
|
||||
|
||||
kit: {
|
||||
adapter: adapter({
|
||||
pages: 'docs'
|
||||
pages: `docs${process.env['BETA'] ? '/beta' : ''}`
|
||||
}),
|
||||
paths: process.env['DEPLOY']
|
||||
? {
|
||||
base: '/mermaid-live-editor'
|
||||
base: `${process.env['BETA'] ? '/beta' : ''}/mermaid-live-editor`
|
||||
}
|
||||
: {},
|
||||
ssr: false,
|
||||
|
||||
Reference in new issue
Block a user