Skip to content

deploy

deploy #1047

Workflow file for this run

name: deploy
on:
# push:
# branches: [ develop ]
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Generate tiles
env:
REGION: africa
AREA: rwanda
SITE_ROOT: https://wasac.github.io/naru
run: |
docker compose up
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: 12.x
- run: yarn
- name: configure git and deploy
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
run: |
git config --global user.name "wasac+githubci"
git config --global user.email "[email protected]"
git remote set-url origin https://x-access-token:${NODE_AUTH_TOKEN}@github.com/wasac/naru.git
yarn run deploy