Skip to content

Commit afd06d6

Browse files
Fix: Build the docs from the correct ref
Before, the documentation was always built from the main branch, even when the launcher was released from a different branch.
1 parent 7618502 commit afd06d6

File tree

5 files changed

+28
-1
lines changed

5 files changed

+28
-1
lines changed

.github/workflows/continue-release-production.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
tag:
77
description: Tag of the release to continue.
88
type: string
9+
required: true
910

1011
jobs:
1112
check-version:
@@ -68,5 +69,7 @@ jobs:
6869
6970
publish-docs:
7071
uses: ./.github/workflows/docs-publish-prod.yml
72+
with:
73+
ref: ${{ inputs.tag }}
7174
needs: continue-release
7275
secrets: inherit

.github/workflows/continue-release-rc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
inputs:
66
tag:
77
description: Tag of the release to continue.
8+
required: true
89
type: string
910

1011
jobs:

.github/workflows/docs-bundle.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,16 @@ on:
77
- .github/workflows/docs-bundle.yml
88
- doc
99
workflow_dispatch:
10-
workflow_call:
10+
inputs:
11+
ref:
12+
description:
13+
Ref (Tag, branch, commit SHA) to publish the docs from.
14+
Defaults to the main branch.
15+
type: string
1116

1217
jobs:
1318
create-doc-bundle:
1419
uses: NordicSemiconductor/pc-nrfconnect-shared/.github/workflows/docs-bundle.yml@main
1520
with:
1621
bundle-name: nrf-connect-desktop
22+
ref: ${{ inputs.ref }}

.github/workflows/docs-publish-dev.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,18 @@ on:
88
- doc
99
- .github/workflows/docs-*.yml
1010
workflow_dispatch:
11+
inputs:
12+
ref:
13+
description:
14+
Ref (Tag, branch, commit SHA) to publish the docs from.
15+
Defaults to the main branch.
16+
type: string
1117

1218
jobs:
1319
publish-docs-bundle:
1420
uses: NordicSemiconductor/pc-nrfconnect-shared/.github/workflows/docs-publish.yml@main
1521
with:
1622
bundle-name: nrf-connect-desktop
1723
release-type: dev
24+
ref: ${{ inputs.ref }}
1825
secrets: inherit

.github/workflows/docs-publish-prod.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,22 @@ name: 'Docs: Publish to prod'
22

33
on:
44
workflow_dispatch:
5+
inputs:
6+
ref:
7+
description:
8+
Ref (Tag, branch, commit SHA) to publish the docs from.
9+
Defaults to the main branch.
10+
type: string
511
workflow_call:
12+
inputs:
13+
ref:
14+
type: string
615

716
jobs:
817
publish-docs-bundle:
918
uses: NordicSemiconductor/pc-nrfconnect-shared/.github/workflows/docs-publish.yml@main
1019
with:
1120
bundle-name: nrf-connect-desktop
1221
release-type: prod
22+
ref: ${{ inputs.ref }}
1323
secrets: inherit

0 commit comments

Comments
 (0)