Skip to content

Weekly Sync

Weekly Sync #46

Workflow file for this run

name: Weekly Sync
on:
schedule:
- cron: '6 18 * * 4'
# at 06:06am on Thursday NZST
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
jobs:
sync:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- name: ⏬ Checkout code
uses: actions/checkout@v3
- name: ⏬ Enable Corepack
run: corepack enable
- name: 🔢 Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: yarn
- name: ⏬ Install
run: |
yarn
- name: 🚚 Run the conflation
run: |
yarn start
# we have to deploy the client & data together, so
# rebuild the client
- name: 🛠 Build Client
id: build
run: |
cd client
yarn build
- name: 🚀 Upload dist folder
id: deployment
uses: actions/upload-pages-artifact@v3
with:
path: client/dist/
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: sync
steps:
- name: 🚀 Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4