Release notes soda-library 1.8.0 and soda-agent 1.1.32 #3109
Workflow file for this run
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: Build Soda Docs | |
on: [ push ] | |
jobs: | |
publish-docs: | |
name: Deploy documentation | |
if: github.ref == 'refs/heads/main' && github.repository == 'sodadata/docs' | |
timeout-minutes: 10 | |
runs-on: ubuntu-20.04 | |
env: | |
AWS_CLOUDFRONT_ID: E2OAY23FHJNRE7 | |
AWS_DOCS_BUCKET: soda-public-docs | |
AWS_DOCS_PATH: / | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Configure AWS | |
uses: aws-actions/configure-aws-credentials@v1 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_DOCS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_DOCS_SECRET_ACCESS_KEY }} | |
aws-region: ${{ secrets.AWS_DOCS_REGION }} | |
- name: Set up Ruby 2.7 | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 2.7 | |
- uses: actions/cache@v2 | |
with: | |
path: ./vendor/bundle | |
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} | |
restore-keys: | | |
${{ runner.os }}-gems- | |
- name: Build docs | |
working-directory: ./ | |
run: | | |
gem install bundler -v 2.4.22 | |
bundle config path vendor/bundle | |
bundle install --jobs 4 --retry 3 | |
bundle exec jekyll build | |
- name: Publish docs | |
run: aws s3 sync --delete ./_site s3://${AWS_DOCS_BUCKET}${AWS_DOCS_PATH} | |
- name: Invalidate cache | |
run: aws cloudfront create-invalidation --distribution-id ${AWS_CLOUDFRONT_ID} --paths "${AWS_DOCS_PATH}" "${AWS_DOCS_PATH}/*" |