diff --git a/.github/workflows/publish-dev.yaml b/.github/workflows/publish-dev.yaml new file mode 100644 index 0000000..16683ad --- /dev/null +++ b/.github/workflows/publish-dev.yaml @@ -0,0 +1,29 @@ +name: Build TechDocs with DevHub TechDocs Publish Action + +on: + workflow_dispatch: + push: + branches: [ dev ] + paths: + - "mkdocs.yml" + - "docs/*" + +jobs: + test_techdocs_build_job: + runs-on: ubuntu-latest + + name: A job to build and publish techdocs content + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Build TechDocs + uses: bcgov/devhub-techdocs-publish@stable + id: build_and_publish + with: + publish: 'true' + production: 'false' + bucket_name: ${{ secrets.TECHDOCS_S3_BUCKET_NAME }} + s3_access_key_id: ${{ secrets.TECHDOCS_AWS_ACCESS_KEY_ID }} + s3_secret_access_key: ${{ secrets.TECHDOCS_AWS_SECRET_ACCESS_KEY }} + s3_region: ${{ secrets.TECHDOCS_AWS_REGION }} + s3_endpoint: ${{ secrets.TECHDOCS_AWS_ENDPOINT }} diff --git a/.github/workflows/publish-prod.yaml b/.github/workflows/publish-prod.yaml new file mode 100644 index 0000000..745fd2e --- /dev/null +++ b/.github/workflows/publish-prod.yaml @@ -0,0 +1,30 @@ +# name: Build TechDocs with DevHub TechDocs Publish Action + +# on: +# workflow_dispatch: +# push: +# branches: [ main ] +# paths: +# - "mkdocs.yml" +# - "docs/*" + +# jobs: +# test_techdocs_build_job: +# runs-on: ubuntu-latest + +# name: A job to build and publish techdocs content +# steps: +# - name: Checkout +# uses: actions/checkout@v4 +# - name: Build TechDocs +# uses: bcgov/devhub-techdocs-publish@stable +# id: build_and_publish +# with: +# publish: 'true' +# production: 'true' +# # production: ${{ github.ref == 'refs/heads/main' && 'true' || 'false' }} # example of only pushing to prod DevHub when changes that triggered the job are in `main` branch +# bucket_name: ${{ secrets.TECHDOCS_S3_BUCKET_NAME }} +# s3_access_key_id: ${{ secrets.TECHDOCS_AWS_ACCESS_KEY_ID }} +# s3_secret_access_key: ${{ secrets.TECHDOCS_AWS_SECRET_ACCESS_KEY }} +# s3_region: ${{ secrets.TECHDOCS_AWS_REGION }} +# s3_endpoint: ${{ secrets.TECHDOCS_AWS_ENDPOINT }} diff --git a/mkdocs.yml b/mkdocs.yml index cf57a27..b6c1ff3 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -1,7 +1,12 @@ site_name: BC Government Public Cloud Technical Documentation docs_dir: docs -# nav: -# - General: -# - Some Menu Item: docs/design-system/about-the-design-system.md +nav: +- Get Started: + - B.C. Government AWS Landing Zone overview: bc-govs-aws-landing-zone-overview.md + - Provision a project set in AWS: provision-a-project-set.md + - Account access: provision-a-project-set.md#account-access +- Design, Build and Deploy an Application: + - Deploy an app to BC Gov's AWS Landing Zone: deploy-an-app-to-the-aws-landing-zone + - AWS IAM User service: iam-user-service.md plugins: - techdocs-core