Skip to content

Build and deploy

Build and deploy #53

Workflow file for this run

name: Build and deploy
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
# * at the first of the month this will be run to update the files
- cron: '30 3 1 * *'
# 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:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v3
# setup node
- uses: actions/setup-node@v3
with:
node-version: '18'
- run: yarn
# Runs a single command using the runners shell
- name: Build and simplify maps
run: ./create_geojson.bash
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4.4.1
with:
branch: gh-pages # The branch the action should deploy to.
folder: build # The folder the action should deploy.