Merge pull request #258 from Exabyte-io/chore/SOF-6589 #103
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: Update S3 sources | |
on: | |
push: | |
branches: | |
- 'master' | |
pull_request: | |
types: | |
- closed | |
branches: | |
- 'master' | |
workflow_dispatch: | |
jobs: | |
build: | |
name: Deploy docs | |
runs-on: ubuntu-20.04 | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.S3_ACCESS_KEY }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.S3_SECRET_KEY }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
token: ${{ secrets.SUBMODULE_CLONE_TOKEN }} | |
submodules: true | |
- name: Checkout LFS objects | |
run: git lfs pull | |
- name: Build pages | |
uses: Exabyte-io/action-mkdocs-build@main | |
- name: S3 Deploy | |
uses: Exabyte-io/action-s3-deploy@v3 | |
with: | |
folder: site | |
bucket: docs.mat3ra.com | |
bucket-region: ${{ secrets.S3_LOCATION }} | |
dist-id: ${{ secrets.CLOUDFRONT_DISTRIBUTION_ID }} | |
invalidation: /* | |
no-cache: true | |
private: true |