Publish #770
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: Publish | |
on: | |
#Merge | |
push: | |
branches: | |
- master | |
#Label | |
pull_request: | |
types: [labeled] | |
#Enable UI-driven branch testing | |
workflow_dispatch: | |
#Test main bidaily @ 1a | |
schedule: | |
- cron: '0 1 1-31/2 * *' | |
jobs: | |
stub_mt: | |
name: Always-succeed step to prevent appearing as a failure | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- name: Do nothing | |
run: echo "Do nothing" | |
publish: | |
name: Upload to Amazon S3 | |
if: github.event.action != 'labeled' || github.event.label.name == 'publish' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Configure AWS credentials | |
uses: aws-actions/configure-aws-credentials@v1 | |
with: | |
aws-access-key-id: ${{ secrets.S3_AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.S3_AWS_SECRET_ACCESS_KEY }} | |
aws-region: ${{ secrets.S3_AWS_REGION_PUBLIC }} | |
- name: Copy CloudFormation templates | |
run: | | |
aws s3 cp src/bootstraps/core/graphistry.yml "s3://${{ secrets.AWS_S3_BUCKET_PUBLIC}}/templates/latest/core/graphistry.yml" | |
aws s3 cp src/bootstraps/core/minimal.yml "s3://${{ secrets.AWS_S3_BUCKET_PUBLIC}}/templates/latest/core/minimal.yml" | |
aws s3 cp src/bootstraps/neptune/graphistry.yml "s3://${{ secrets.AWS_S3_BUCKET_PUBLIC}}/templates/latest/neptune/graphistry.yml" | |
aws s3 cp src/bootstraps/neptune/minimal.yml "s3://${{ secrets.AWS_S3_BUCKET_PUBLIC}}/templates/latest/neptune/minimal.yml" | |