Skip to content

Commit

Permalink
Try beta deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
sidharthv96 committed Jun 2, 2021
1 parent 6a0d3e4 commit 5d17cd4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ on:
push:
branches:
- master
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 5d17cd4

Please sign in to comment.