deploy #1074
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |