From 70c8b6014bf4bf857d18b3b4b91174489ca86032 Mon Sep 17 00:00:00 2001 From: Sidharth Vinod Date: Thu, 3 Jun 2021 00:21:14 +0530 Subject: [PATCH] Try beta --- .github/workflows/deploy.yml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index ec8eb2ba..1a790775 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -26,13 +26,22 @@ jobs: restore-keys: | ${{ runner.os }}-node_modules-build-deploy- + - name: Setup Beta + if: ${{ github.event_name == 'pull_request' }} + run: | + export BETA=true + rm -rf docs/beta/ + + - name: Cleanup build + if: ${{ github.event_name != 'pull_request' }} + run: | + rm -rf docs/_app/ + - name: Build & Deploy run: | npm i -g yarn export DEPLOY=true - export BETA=true echo "$GITHUB_EVENT_NAME" - rm -rf docs/_app yarn install # yarn run lint version=$(yarn version --patch --no-git-tag-version | grep "New version" | cut -d':' -f 2) @@ -42,6 +51,7 @@ jobs: cd .. git config user.name github-actions git config user.email github-actions@github.com + git pull origin gh-pages git add . git commit -nm "Release $version" - git push + git push origin gh-pages