-
Notifications
You must be signed in to change notification settings - Fork 0
87 lines (75 loc) · 2.52 KB
/
main-ci.yml
File metadata and controls
87 lines (75 loc) · 2.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
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