Skip to content

Merge pull request #317 from bcgov/cailey-artifactory-update #324

Merge pull request #317 from bcgov/cailey-artifactory-update

Merge pull request #317 from bcgov/cailey-artifactory-update #324

Workflow file for this run

name: Build TechDocs with DevHub TechDocs Publish Action
on:
push:
branches: [main]
paths:
- "src/docs/**"
- "src/images/**"
- "mkdocs.yml"
- "catalog-info.yaml"
- "src/index.md"
- "src/files/argocd/**"
pull_request:
branches: [main]
paths:
- "src/docs/**"
- "src/images/**"
- "mkdocs.yml"
- "catalog-info.yaml"
- "src/index.md"
jobs:
techdocs_build_job:
runs-on: ubuntu-latest
name: A job to build and publish techdocs content
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Build TechDocs
uses: bcgov/devhub-techdocs-publish@stable
id: build_and_publish
with:
publish: "true"
production: ${{ github.ref == 'refs/heads/main' && 'true' || '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 }}