Compare commits
9
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9a59fc4fe5 | ||
|
|
82e17f41aa | ||
|
|
84c6a85545 | ||
|
|
3bd5a640ec | ||
|
|
1cb42e0a88 | ||
|
|
da53dab766 | ||
|
|
9396ed376b | ||
|
|
4bc257bace | ||
|
|
395ea5b7f1 |
@@ -0,0 +1,34 @@
|
|||||||
|
name: Beta Deploy
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- none
|
||||||
|
# - citest
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
|
||||||
|
- name: Checkout docs repo
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
repository: mermaid-js/docs
|
||||||
|
path: docs
|
||||||
|
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
path: main
|
||||||
|
|
||||||
|
- uses: actions/setup-node@v2
|
||||||
|
with:
|
||||||
|
node-version: '12'
|
||||||
|
|
||||||
|
- run: |
|
||||||
|
cd main
|
||||||
|
npm i -g yarn
|
||||||
|
yarn install
|
||||||
|
yarn release-beta
|
||||||
|
git config user.name github-actions
|
||||||
|
git config user.email github-actions@github.com
|
||||||
|
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
name: Deploy Live Editor Beta
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
- citest
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/setup-node@v2
|
||||||
|
with:
|
||||||
|
node-version: '12'
|
||||||
|
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Build & Deploy
|
||||||
|
run: |
|
||||||
|
npm i -g yarn
|
||||||
|
yarn install
|
||||||
|
yarn release-beta
|
||||||
|
git config user.name github-actions
|
||||||
|
git config user.email github-actions@github.com
|
||||||
|
git add ./docs/*
|
||||||
|
git commit -m "Release Beta"
|
||||||
|
git push
|
||||||
|
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
name: Deploy Live Editor
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- release
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/setup-node@v2
|
||||||
|
with:
|
||||||
|
node-version: '12'
|
||||||
|
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Build & Deploy
|
||||||
|
run: |
|
||||||
|
npm i -g yarn
|
||||||
|
yarn install
|
||||||
|
yarn release
|
||||||
|
git config user.name github-actions
|
||||||
|
git config user.email github-actions@github.com
|
||||||
|
git add ./docs/*
|
||||||
|
git commit -m "Release"
|
||||||
|
git push
|
||||||
|
|
||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
@@ -21,6 +21,7 @@
|
|||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"release": "cross-env NODE_ENV=production webpack -p",
|
"release": "cross-env NODE_ENV=production webpack -p",
|
||||||
|
"release-beta": "yarn release --output-path ./docs/beta",
|
||||||
"build": "cross-env NODE_ENV=production webpack",
|
"build": "cross-env NODE_ENV=production webpack",
|
||||||
"dev": "webpack-dev-server --content-base docs",
|
"dev": "webpack-dev-server --content-base docs",
|
||||||
"pretty": "prettier --write ./src/*"
|
"pretty": "prettier --write ./src/*"
|
||||||
|
|||||||
Reference in New Issue
Block a user