Skip to content

Merge pull request #20 from cofacts/diminish-blocked #13

Merge pull request #20 from cofacts/diminish-blocked

Merge pull request #20 from cofacts/diminish-blocked #13

name: Build and deploy to gh-pages
# Controls when the action will run.
on:
push:
branches:
- master
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build-and-deploy:
# The type of runner that the job will run on
runs-on: ubuntu-latest
env:
EXTEND_ESLINT: true
REACT_APP_API_URL: https://api.cofacts.tw
REACT_APP_SITE_URL: https://cofacts.tw
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Checkout repo
uses: actions/checkout@v2
- uses: actions/setup-node@v2
- run: npm ci
- run: npm run build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build