Skip to content

Commit 800705d

Browse files
Copilotpetesramek
andauthored
feat: integrate publish-documentation into release workflow
Agent-Logs-Url: https://github.com/petesramek/polyline-algorithm-csharp/sessions/0020a340-1941-476e-bba2-87aec5e7c860 Co-authored-by: petesramek <2333452+petesramek@users.noreply.github.com>
1 parent a48f79c commit 800705d

2 files changed

Lines changed: 13 additions & 7 deletions

File tree

.github/workflows/publish-documentation.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,7 @@
22

33
on:
44
workflow_dispatch:
5-
push:
6-
branches:
7-
- 'release/**'
8-
paths:
9-
- 'src/**'
10-
- 'api-reference/**'
5+
workflow_call:
116

127
permissions:
138
actions: read

.github/workflows/release.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,20 @@ jobs:
206206
${{ runner.temp }}/${{ env.nuget-packages-directory }}/**/*.nupkg
207207
${{ runner.temp }}/${{ env.nuget-packages-directory }}/**/*.snupkg
208208
209+
publish-documentation:
210+
name: 'Publish documentation'
211+
needs: [pack, validate-release, workflow-variables]
212+
if: ${{ needs.workflow-variables.outputs.is-release == 'true' }}
213+
uses: ./.github/workflows/publish-documentation.yml
214+
permissions:
215+
actions: read
216+
pages: write
217+
id-token: write
218+
209219
publish-package:
210220
name: 'Publish package'
211-
needs: [pack, validate-release]
221+
needs: [pack, validate-release, publish-documentation]
222+
if: ${{ always() && needs.pack.result == 'success' && needs.validate-release.result == 'success' && (needs.publish-documentation.result == 'success' || needs.publish-documentation.result == 'skipped') }}
212223
env:
213224
package-artifact-name: ${{ needs.pack.outputs.package-artifact-name }}
214225
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)