From 453f244997e6a4a7d87b22e34e7d2f21cc9c31e9 Mon Sep 17 00:00:00 2001 From: Yuliang Weng <59968766+yld-weng@users.noreply.github.com> Date: Thu, 24 Mar 2022 13:22:40 +0000 Subject: [PATCH] ci(live): use actions --- .github/workflows/deploy.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 8fc0249fd..b7741a462 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -69,10 +69,9 @@ jobs: GIT_COMMITTER_NAME: "github-actions-bot" GIT_COMMITTER_EMAIL: "support+actions@github.com" - - name: Deploy + - name: Build run: | - git remote set-url origin https://git:${GH_TOKEN}@github.com/researchdata-sheffield/dataviz-hub2.git - npm run deploy + npm run build env: NODE_OPTIONS: '--max_old_space_size=4096' EVENT_API_KEY_1: ${{ secrets.EVENT_API_KEY_1 }} @@ -84,6 +83,15 @@ jobs: GH_TOKEN: ${{ secrets.GH_TOKEN }} GATSBY_ENV: ${{ secrets.GATSBY_ENV }} + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + with: + personal_token: ${{ secrets.GH_TOKEN }} + publish_branch: gh-pages + publish_dir: ./public + user_name: 'github-actions[bot]' + user_email: 'github-actions[bot]@users.noreply.github.com' +