diff --git a/.github/workflows/phylogenetic.yaml b/.github/workflows/phylogenetic.yaml index fd57349..420b1cf 100644 --- a/.github/workflows/phylogenetic.yaml +++ b/.github/workflows/phylogenetic.yaml @@ -76,7 +76,7 @@ jobs: outputs: config_overrides: ${{ steps.config.outputs.config }} - phylogenetic: + phylogenetic_global: needs: [set_config_overrides] permissions: id-token: write @@ -105,3 +105,33 @@ jobs: phylogenetic/benchmarks/ phylogenetic/logs/ phylogenetic/.snakemake/log/ + + phylogenetic_wa: + needs: [set_config_overrides] + permissions: + id-token: write + uses: nextstrain/.github/.github/workflows/pathogen-repo-build.yaml@master + secrets: inherit + with: + # Starting with the default docker runtime + # We can migrate to AWS Batch when/if we need to for more resources or if + # the job runs longer than the GH Action limit of 6 hours. + runtime: docker + env: | + NEXTSTRAIN_DOCKER_IMAGE: ${{ inputs.image }} + CONFIG_OVERRIDES: ${{ needs.set_config_overrides.outputs.config_overrides }} + run: | + nextstrain build \ + phylogenetic \ + deploy_all \ + --configfile build-configs/nextstrain-automation/config.yaml build-configs/washington-state/config.yaml build-configs/washington-state/config-public.yaml \ + $CONFIG_OVERRIDES + # Specifying artifact name to differentiate ingest build outputs from + # the phylogenetic build outputs + artifact-name: phylogenetic-wa-build-output + artifact-paths: | + phylogenetic/auspice/ + phylogenetic/results/ + phylogenetic/benchmarks/ + phylogenetic/logs/ + phylogenetic/.snakemake/log/ diff --git a/phylogenetic/build-configs/washington-state/config-public.yaml b/phylogenetic/build-configs/washington-state/config-public.yaml new file mode 100644 index 0000000..eff45e7 --- /dev/null +++ b/phylogenetic/build-configs/washington-state/config-public.yaml @@ -0,0 +1,9 @@ +# Use public data for the public tree +sequences_url: "https://data.nextstrain.org/files/workflows/WNV/sequences.fasta.zst" +metadata_url: "https://data.nextstrain.org/files/workflows/WNV/metadata.tsv.zst" +input_metadata: "data/metadata.tsv" +input_sequences: "data/sequences.fasta" + +custom_rules: + - build-configs/nextstrain-automation/deploy.smk + - build-configs/washington-state/washington-state-rules.smk