Skip to content

Merge pull request #29 from mongabay/update-style #40

Merge pull request #29 from mongabay/update-style

Merge pull request #29 from mongabay/update-style #40

Workflow file for this run

name: Build
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- name: Read .nvmrc
run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)"
id: nvm
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: '${{ steps.nvm.outputs.NVMRC }}'
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build
env:
BASE_PATH:
run: yarn build
- name: Create CNAME file
run: cp CNAME out/CNAME
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_dir: ./out