Merge pull request #3538 from dbt-labs/bump-package-versions-1732723259 #572
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 hub.getdbt.com | |
on: | |
push: | |
branches: | |
- 'master' | |
jobs: | |
deploy: | |
concurrency: deploy | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '2.7' | |
bundler-cache: true | |
- name: Deploy | |
env: | |
AWS_REGION: us-east-1 | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
run: | | |
bundle exec middleman build | |
aws s3 cp --recursive build/ s3://com.getdbt.hub/ | |
aws cloudfront create-invalidation --distribution-id E39VJ0QVYMOHEU --paths '/*' |