Deploy private.nextflu.org #3
Workflow file for this run
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 private.nextflu.org | |
on: | |
workflow_dispatch: | |
inputs: | |
aws_batch_job_id: | |
description: "AWS Batch Job ID for the private nextflu builds to download the latest builds" | |
required: true | |
type: string | |
defaults: | |
run: | |
shell: bash | |
working-directory: auspice | |
jobs: | |
deploy_to_netlify: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
repository: blab/nextflu | |
ref: exclude-vendor | |
sparse-checkout: | | |
auspice | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '2.3.7' | |
bundler-cache: true | |
working-directory: auspice | |
- run: mkdir data | |
- uses: ./actions/setup-nextstrain-cli | |
- name: Download builds | |
run: | | |
nextrain build \ | |
--aws-batch \ | |
--attach "$AWS_BATCH_JOB_ID" \ | |
--download auspice-who/*.json \ | |
--no-logs \ | |
. | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
AWS_BATCH_JOB_ID: ${{ inputs.aws_batch_job_id }} | |
- run: mv auspice-who/* data/ && rm -r auspice-who/ | |
- run: bundle exec jekyll build |