forked from nextstrain/nextclade_data
-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (58 loc) · 1.58 KB
/
data-curation.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
on:
push:
branches:
- master
- staging
- release
workflow_dispatch:
jobs:
Deploy-Datasets:
runs-on: ubuntu-20.04
environment:
name: ${{ github.ref }}
env:
VERBOSE: 0
PYTHONUNBUFFERED: 1
DATA_AWS_S3_BUCKET: ${{ secrets.DATA_AWS_S3_BUCKET }}
DATA_AWS_CLOUDFRONT_DISTRIBUTION_ID: ${{ secrets.DATA_AWS_CLOUDFRONT_DISTRIBUTION_ID }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: us-east-2
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 1
- name: install dependencies
run: |
sudo apt-get install brotli pigz parallel rename --yes -qq >/dev/null
- name: install awscli
run: |
set -x
pushd /tmp >/dev/null
curl -fsSL "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip -oqq awscliv2.zip
sudo ./aws/install --update
popd >/dev/null
aws --version
- name: rebuild
run: |
set -x
./scripts/rebuild
- name: download
run: |
set -x
./scripts/download
- name: compare
run: |
set -x
./scripts/compare
- name: upload
run: |
set -x
./scripts/upload
- name: create git tag
if: github.ref == 'refs/heads/release'
run: |
set -x
git tag $(TZ=UTC date "+%Y-%m-%d--%H-%M-%S--%Z")
git push --tags