-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test to deploy documentation HTML to dedicated branch
- Loading branch information
1 parent
b5d6720
commit cc13f6b
Showing
1 changed file
with
29 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -35,6 +35,11 @@ jobs: | |
uses: actions/upload-pages-artifact@v1 | ||
with: | ||
path: "_build" | ||
- name: Upload build folder | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: build-folder | ||
path: "_build" | ||
|
||
deploy-documentation: | ||
runs-on: ubuntu-latest | ||
|
@@ -48,4 +53,27 @@ jobs: | |
steps: | ||
- name: Deploy to GitHub pages | ||
id: deployment | ||
uses: actions/deploy-pages@v2 | ||
uses: actions/deploy-pages@v2 | ||
|
||
deploy-documentation-branch: | ||
runs-on: ubuntu-latest | ||
needs: build-documentation | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set Git config | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "Github Actions" | ||
- name: Create git subtree | ||
run: git subtree add --prefix _build origin docportal | ||
|
||
- name: Download build folder | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: build-folder | ||
path: _build | ||
|
||
- name: Commit | ||
run: git add _build && git commit -m "build - production deploy" && git subtree push --prefix _build origin docportal |