-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2420ede
commit 131a56d
Showing
7 changed files
with
37 additions
and
11 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,9 @@ on: | |
pull_request: | ||
types: [opened, synchronize, reopened, closed] | ||
|
||
permissions: | ||
pull-requests: write | ||
|
||
env: | ||
PUBLISH_DIR: doc/_build/html/ | ||
|
||
|
@@ -122,7 +125,7 @@ jobs: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ${{ env.PUBLISH_DIR }} | ||
|
||
- name: Deploy docs [PR] | ||
- name: Publish pull-request docs | ||
if: | | ||
!github.event.pull_request.head.repo.fork && github.event.pull_request && github.event.action != 'closed' | ||
uses: peaceiris/[email protected] | ||
|
@@ -136,6 +139,17 @@ jobs: | |
user_name: 'github-actions[bot]' | ||
user_email: 'github-actions[bot]@users.noreply.github.com' | ||
|
||
- name: Comment with URL to published pull-request docs | ||
if: | | ||
!github.event.pull_request.head.repo.fork && github.event.pull_request && github.event.action != 'closed' | ||
env: | ||
PR_NUM: ${{ github.event.number }} | ||
uses: mshick/[email protected] | ||
with: | ||
message: | | ||
View rendered docs @ https://intelpython.github.io/dpnp/pulls/${{ env.PR_NUM }}/index.html | ||
allow-repeats: false | ||
|
||
clean: | ||
if: | | ||
!github.event.pull_request.head.repo.fork && github.event.pull_request && github.event.action == 'closed' | ||
|
@@ -162,3 +176,11 @@ jobs: | |
git config --global user.email 'github-actions[bot]@users.noreply.github.com' | ||
git commit -m "Removing docs for closed pull request ${PR_NUM}" | ||
git push tokened_docs gh-pages | ||
- name: Modify the comment with URL to published pull-request docs | ||
uses: mshick/[email protected] | ||
with: | ||
find: | | ||
View rendered docs @.+ | ||
replace: | | ||
View rendered docs @ https://intelpython.github.io/dpnp/index.html |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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