Skip to content

Commit

Permalink
Added document deploy.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesiarmes committed Sep 6, 2024
1 parent 90490f2 commit b8e587f
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
on:
pull_request:
workflow_dispatch:
push:
branches:
- main

jobs:
deploy:
name: Deploy Documentation
environment: ${{ env.ENVIRONMENT || 'dev' }}
env:
BUCKET_NAME: ${{ env.BUCKET_NAME || 'dev.docs.cfa.codes' }}
PREFIX: ${{ env.PREFIX || 'document-transfer-service' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1
- uses: actions/setup-python@v5
with:
python-version: 3.x
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v4
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- run: pip install mkdocs-material pymdown-extensions
- run: mkdocs build
- run: aws s3 sync ./site "s3://${BUCKET_NAME}/${PREFIX}" --recursive
1 change: 1 addition & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ AllCops:
- 'db/*schema.rb'
- 'out/**/*'
- 'vendor/**/*'
- 'doc/**/*'

# Transient properties get mistaken for associations in FactoryBot.
# See https://github.com/rubocop/rubocop-factory_bot/issues/73
Expand Down

0 comments on commit b8e587f

Please sign in to comment.