-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (34 loc) · 996 Bytes
/
generate.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Generate
on:
workflow_dispatch
jobs:
generate:
name: Generate
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '12'
- name: Install
run: npm ci
- name: Generate
env:
MAP_BOX_API_KEY: ${{ secrets.MAP_BOX_API_KEY }}
run: |
node ./src/generate.js data.csv
mkdir -p data
- name: Zip
uses: montudor/action-zip@v0.1.0
with:
args: zip -qq data/canadian-city-timezones.zip data.csv
- name: Upload
uses: autovance/s3-sync-action@master
with:
args: --acl public-read --follow-symlinks --delete
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
# AWS_REGION: 'ca-central-1'
SOURCE_DIR: data
DEST_DIR: s3://${{ secrets.AWS_S3_BUCKET }}/data