Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- master
- before-abi-change
pull_request:

jobs:
Expand Down Expand Up @@ -91,17 +92,17 @@ jobs:
# Deploy the compiled proc-blocks to S3
- name: Set AWS credentials
uses: aws-actions/configure-aws-credentials@v1
if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/before-abi-change'
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1
- name: Upload compiled proc-blocks to S3
run: aws s3 sync target/proc-blocks s3://assets.hotg.ai/proc-blocks
if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/before-abi-change'
- name: Invalidate Cloudfront
run: aws cloudfront create-invalidation --distribution-id=${{ secrets.AWS_DISTRIBUTION_ID }} --paths="/proc-blocks/*"
if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/before-abi-change'

api-docs:
name: Publish API Docs to GitHub Pages
Expand Down
Loading