Skip to content

Merge pull request #24 from mongabay/feature/MP-173-link-to-trase-but… #30

Merge pull request #24 from mongabay/feature/MP-173-link-to-trase-but…

Merge pull request #24 from mongabay/feature/MP-173-link-to-trase-but… #30

Workflow file for this run

name: Build
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-18.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