From 82e17f41aa1b0ff543377ab8be9cf4d2f7e6ccf4 Mon Sep 17 00:00:00 2001 From: Sidharth Vinod Date: Thu, 14 Jan 2021 18:13:51 +0530 Subject: [PATCH] Beta Deploy --- .github/workflows/beta-deploy.yml | 9 +++++---- .github/workflows/deploy-beta.yml | 28 ++++++++++++++++++++++++++++ .github/workflows/deploy.yml | 17 ++++++++--------- package.json | 1 + 4 files changed, 42 insertions(+), 13 deletions(-) create mode 100644 .github/workflows/deploy-beta.yml diff --git a/.github/workflows/beta-deploy.yml b/.github/workflows/beta-deploy.yml index fbfe5d03..6892bcbb 100644 --- a/.github/workflows/beta-deploy.yml +++ b/.github/workflows/beta-deploy.yml @@ -2,7 +2,7 @@ name: Beta Deploy on: push: branches: - - master + - none # - citest jobs: build: @@ -28,6 +28,7 @@ jobs: cd main npm i -g yarn yarn install - git config --global user.name github-actions - git config --global user.email github-actions@github.com - ./bin/beta-release \ No newline at end of file + yarn release-beta + git config user.name github-actions + git config user.email github-actions@github.com + \ No newline at end of file diff --git a/.github/workflows/deploy-beta.yml b/.github/workflows/deploy-beta.yml new file mode 100644 index 00000000..7e2e76bb --- /dev/null +++ b/.github/workflows/deploy-beta.yml @@ -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 + \ No newline at end of file diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index f9ff8df8..f43d14b6 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,27 +1,26 @@ -name: Beta Deploy +name: Deploy Live Editor on: push: branches: - release - - citest jobs: build: runs-on: ubuntu-latest steps: - - - name: Checkout - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 with: node-version: '12' - - run: | + - name: Checkout + uses: actions/checkout@v2 + + - name: Build & Deploy + run: | npm i -g yarn yarn install yarn release - git config --global user.name github-actions - git config --global user.email github-actions@github.com + git config user.name github-actions + git config user.email github-actions@github.com git add ./docs/* git commit -m "Release" git push diff --git a/package.json b/package.json index 4f263e72..81491fe0 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ }, "scripts": { "release": "cross-env NODE_ENV=production webpack -p", + "release-beta": "yarn release --output-path ./docs/beta", "build": "cross-env NODE_ENV=production webpack", "dev": "webpack-dev-server --content-base docs", "pretty": "prettier --write ./src/*"