From df126040e96385ec57f18a69d793bf28ef7f0d1b Mon Sep 17 00:00:00 2001 From: Sudhanshu Gautam Date: Fri, 27 Sep 2019 02:08:02 +0530 Subject: [PATCH] fix CD --- .github/workflows/main.yml | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 649afc5..5d9beeb 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -5,15 +5,16 @@ on: branches: - master jobs: - build: + build-and-deploy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@master - - name: Use Node.js 10.x - uses: actions/setup-node@v1 - with: - version: 10.x - - name: Build - run: | - npm install - npm run build --if-present + - name: Checkout + uses: actions/checkout@master + + - name: Build and Deploy + uses: JamesIves/github-pages-deploy-action@master + env: + ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} + BRANCH: gh-pages + FOLDER: build + BUILD_SCRIPT: yarn && yarn build