Skip to content

Commit

Permalink
ci(live): use actions
Browse files Browse the repository at this point in the history
  • Loading branch information
yld-weng committed Mar 24, 2022
1 parent 2ccf254 commit 453f244
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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'




Expand Down

0 comments on commit 453f244

Please sign in to comment.