affortability threshold for 2025 (#419) #27
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: Documentation | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- 'trunk' | |
jobs: | |
docsite: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: nelonoel/[email protected] | |
- name: install hugo | |
run: | | |
sudo snap install hugo --channel=extended | |
- name: Install global packages | |
run: | | |
yarn install | |
- uses: ruby/setup-ruby@v1 | |
- name: Cache Gems | |
uses: actions/cache@v3 | |
with: | |
path: vendor/bundle | |
key: ${{ runner.os }}-medicaid_gateway-gems-mitc-service-${{ hashFiles('**/Gemfile.lock') }} | |
restore-keys: | | |
${{ runner.os }}-medicaid_gateway-gems-mitc_service-${{ hashFiles('**/Gemfile.lock') }} | |
- name: bundle install | |
run: | | |
bundle config path vendor/bundle | |
bundle install | |
cd components/mitc_service | |
bundle config path ../../vendor/bundle | |
bundle install | |
- name: Run yard | |
run: bundle exec yard doc && mv ./doc ./hugo/static/doc | |
- name: Build Documentation | |
run: cd hugo && npm install && hugo --minify | |
- uses: jakejarvis/s3-sync-action@master | |
with: | |
args: --acl public-read | |
env: | |
AWS_S3_BUCKET: ${{ secrets.S3_BUCKET }} | |
AWS_ACCESS_KEY_ID: ${{ secrets.IC_AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.IC_AWS_SECRET_ACCESS_KEY }} | |
SOURCE_DIR: hugo/public | |
DEST_DIR: ${{ env.BRANCH_NAME }} | |
- name: Invalidate CloudFront | |
uses: chetan/invalidate-cloudfront-action@v2 | |
env: | |
DISTRIBUTION: ${{ secrets.DISTRIBUTION }} | |
PATHS: "/*" | |
AWS_REGION: "us-east-1" | |
AWS_ACCESS_KEY_ID: ${{ secrets.IC_AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.IC_AWS_SECRET_ACCESS_KEY }} |