Skip to content

Commit edcb1e9

Browse files
Merge pull request #73 from UiPath/ci/trigger-publish-docs
chore: add GitHub Actions workflow for publishing documentation
2 parents 53ba8ef + 56b84a3 commit edcb1e9

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/publish-docs.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Publish Docs
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
publish-docs:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Trigger Publish Docs
13+
run: |
14+
repo_owner="uipath"
15+
repo_name="uipath-python"
16+
event_type="publish-docs"
17+
18+
curl -L \
19+
-X POST \
20+
-H "Accept: application/vnd.github+json" \
21+
-H "Authorization: Bearer ${{ secrets.REPO_ACCESS }}" \
22+
-H "X-GitHub-Api-Version: 2022-11-28" \
23+
https://api.github.com/repos/$repo_owner/$repo_name/dispatches \
24+
-d "{\"event_type\": \"$event_type\", \"client_payload\": {}}"

0 commit comments

Comments
 (0)