29 lines
647 B
YAML
29 lines
647 B
YAML
name: Deploy Live Editor
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/setup-node@v2
|
|
with:
|
|
node-version: '14'
|
|
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Build & Deploy
|
|
run: |
|
|
npm i -g yarn
|
|
yarn install
|
|
yarn version --patch --no-git-tag-version
|
|
export CI=true
|
|
yarn build
|
|
git config user.name github-actions
|
|
git config user.email github-actions@github.com
|
|
git add .
|
|
git commit -m "Release $(yarn version --version)"
|
|
git push
|