Skip to content

Weekly Sync

Weekly Sync #47

Workflow file for this run

name: Weekly Sync
on:
schedule:
- cron: "6 18 * * 3"
# at 06:06am on Wednesday NZST. This is 2 hours
# after we requested an export from LINZ.
workflow_dispatch:
jobs:
sync:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- name: ⏬ Checkout code
uses: actions/checkout@v3
- name: 🔢 Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: ⏬ Install
run: |
yarn
- name: 0️⃣.5️⃣ Download LINZ Export
run: |
yarn 0.5
env:
REACT_APP_LDS_KEY: ${{ secrets.REACT_APP_LDS_KEY }}
- name: 1️⃣ Download OSM Planet file
run: |
yarn 1
- name: 2️⃣ Preprocess LINZ and OSM data
run: |
yarn 2
- name: 3️⃣ Conflate LINZ and OSM data
run: |
yarn 3
# we have to deploy the client & data together, so
# rebuild the client
- name: 🛠 Build Client
id: build
run: |
yarn client:build
env:
CI: true
REACT_APP_LDS_KEY: ${{ secrets.REACT_APP_LDS_KEY }}
- name: 🚀 Upload ./build folder
id: deployment
uses: actions/upload-pages-artifact@v3
with:
path: build/
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build

Check failure on line 70 in .github/workflows/sync.yml

View workflow run for this annotation

GitHub Actions / Weekly Sync

Invalid workflow file

The workflow is not valid. .github/workflows/sync.yml (Line: 70, Col: 12): Job 'deploy' depends on unknown job 'build'.
steps:
- name: 🚀 Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4