docs(hoverkraft-tech/ci-github-publish): update documentation #123
This file contains hidden or 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: Internal - Main - Continuous Integration | |
| on: | |
| push: | |
| branches: [main] | |
| tags: ["*"] | |
| permissions: | |
| contents: read | |
| id-token: write | |
| pages: write | |
| security-events: write | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| generate-docs: | |
| name: Generate Documentation | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Generate Documentation | |
| uses: ./.github/actions/generate-docs | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| - id: generate-github-actions-docs | |
| uses: hoverkraft-tech/ci-dokumentor@c46a1a108957237cf485103a80b060c35c7dba33 # 0.2.2 | |
| with: | |
| source: | | |
| .github/actions/**/action.yml | |
| .github/workflows/sync-docs-dispatcher.yml | |
| - uses: actions/create-github-app-token@67018539274d69449ef7c02e8e71183d1719ab42 # v2.1.4 | |
| id: generate-token | |
| with: | |
| app-id: ${{ vars.CI_BOT_APP_ID }} | |
| private-key: ${{ secrets.CI_BOT_APP_PRIVATE_KEY }} | |
| - uses: hoverkraft-tech/ci-github-common/actions/create-and-merge-pull-request@5f11437c716059f30c635f90055060e4ef8b31a0 # 0.28.0 | |
| with: | |
| github-token: ${{ steps.generate-token.outputs.token }} | |
| branch: docs/action-documentation-update | |
| title: "docs: update action documentation" | |
| body: Update action documentation | |
| commit-message: | | |
| docs: update action documentation | |
| [skip ci] | |
| ci: | |
| name: Run CI Checks | |
| needs: generate-docs | |
| uses: ./.github/workflows/__shared-ci.yml | |
| secrets: inherit | |
| permissions: | |
| contents: read | |
| security-events: write | |
| # FIXME: This is a workaround for having workflow ref. See https://github.com/orgs/community/discussions/38659 | |
| id-token: write | |
| deploy: | |
| if: github.ref_name == github.event.repository.default_branch | |
| name: Deploy website | |
| needs: ci | |
| runs-on: ubuntu-latest | |
| permissions: | |
| pages: write | |
| id-token: write | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.url }} | |
| steps: | |
| - id: deployment | |
| uses: hoverkraft-tech/ci-github-publish/actions/deploy/github-pages@0717eb404857b7e4a15dc0db5fbece52921e85fb # 0.13.1 | |
| with: | |
| build-path: application/build | |
| build-artifact-name: build |