Upload data to bucket #5
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: Upload data to bucket | |
on: | |
push: | |
branches: [ "main" ] | |
paths: | |
- data/** | |
workflow_dispatch: | |
jobs: | |
Upload: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@master | |
# Doesn't seem to support sync on .gz/.bcf/.bam files (always deletes and reuploads them) | |
- name: Upload | |
run: aws s3 sync ./data/ s3://bio-data-zoo/ | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
AWS_ENDPOINT_URL: ${{ secrets.AWS_ENDPOINT_URL }} | |
AWS_EC2_METADATA_DISABLED: true |