Skip to content

feat: refine Harbor migration APIs (#142) #382

feat: refine Harbor migration APIs (#142)

feat: refine Harbor migration APIs (#142) #382

Workflow file for this run

name: Docs
on:
pull_request:
branches:
- main
- 'release/v*'
push:
branches:
- main
- 'release/v*'
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: docs-${{ github.ref }}
cancel-in-progress: true
jobs:
docs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
- name: Detect docs-relevant changes
id: changes
uses: dorny/paths-filter@7b450fff21473bca461d4b92ce414b9d0420d706 # v4
with:
filters: |
api_reference:
- 'api/**'
- 'docs/reference/api.md'
- 'hack/crd-ref-docs.yaml'
- 'Makefile'
docs_site:
- 'api/**'
- 'docs/**'
- 'hack/mkdocs.yml'
- 'Makefile'
- '.github/workflows/docs.yaml'
- name: Set up Go
if: github.event_name != 'pull_request' || steps.changes.outputs.api_reference == 'true'
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version-file: go.mod
- name: Generate API reference
if: github.event_name != 'pull_request' || steps.changes.outputs.api_reference == 'true'
run: make generate-api-reference
- name: Build docs site
if: github.event_name != 'pull_request' || steps.changes.outputs.docs_site == 'true'
run: make build-docs-site
- name: Configure Pages
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d # v6
- name: Upload Pages artifact
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5
with:
path: site
- name: Deploy to GitHub Pages
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
id: deployment
uses: actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5