Skip to content

Global Fishing Watch API v2 (#27) #76

Global Fishing Watch API v2 (#27)

Global Fishing Watch API v2 (#27) #76

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:
MAPBOX_API_KEY: pk.eyJ1IjoibW9uZ2FiYXkiLCJhIjoiY2s4N25oZG82MGFyejNsb2lnN3ZrbG1jbyJ9.coW3do99wi_PmnW6OylFbA
GOOGLE_MAPS_API_KEY: AIzaSyAAxz7TeRA74aGk0yTHxTfaxIn6rJt3vrg
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