-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed caching issue with docs publication
- Loading branch information
1 parent
102c046
commit 6ce5d3d
Showing
2 changed files
with
19 additions
and
16 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 |
---|---|---|
|
@@ -8,8 +8,6 @@ on: | |
branches: | ||
- master | ||
workflow_dispatch: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
|
||
|
@@ -33,6 +31,7 @@ jobs: | |
- name: Run and build Hugo | ||
run: | | ||
rm -rf common/content/${{ env.PRODUCT }} | ||
mkdir -p common/content/${{ env.PRODUCT }} | ||
cp -r java common/content/${{ env.PRODUCT }} | ||
cp -r net common/content/${{ env.PRODUCT }} | ||
|
@@ -49,10 +48,12 @@ jobs: | |
key: ${{ secrets.DOCS_SSH_KEY }} | ||
|
||
- name: Deploy documentation | ||
uses: nogsantos/scp-deploy@master | ||
uses: burnett01/[email protected] | ||
with: | ||
src: common/public/${{ env.PRODUCT }} | ||
host: ${{ secrets.DOCS_SSH_HOST }} | ||
remote: ${{ secrets.DOCS_SSH_DIR }} | ||
user: ${{ secrets.DOCS_SSH_USER }} | ||
key: ${{ secrets.DOCS_SSH_KEY }} | ||
switches: -vzr --delete | ||
path: common/public/${{ env.PRODUCT }} | ||
remote_path: ${{ secrets.DOCS_SSH_DIR }} | ||
remote_host: ${{ secrets.DOCS_SSH_HOST }} | ||
remote_user: ${{ secrets.DOCS_SSH_USER }} | ||
remote_key: ${{ secrets.DOCS_SSH_KEY }} | ||
|
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 |
---|---|---|
|
@@ -13,7 +13,7 @@ jobs: | |
PRODUCT: total | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Submodule update | ||
run: | | ||
|
@@ -27,6 +27,7 @@ jobs: | |
- name: Run and build Hugo | ||
run: | | ||
rm -rf common/content/${{ env.PRODUCT }} | ||
mkdir -p common/content/${{ env.PRODUCT }} | ||
cp -r java common/content/${{ env.PRODUCT }} | ||
cp -r net common/content/${{ env.PRODUCT }} | ||
|
@@ -41,12 +42,13 @@ jobs: | |
remote: ${{ secrets.DOCS_QA_SSH_DIR }}/sitemaps/${{ env.PRODUCT }}.xml | ||
user: ${{ secrets.DOCS_SSH_USER }} | ||
key: ${{ secrets.DOCS_SSH_KEY }} | ||
|
||
- name: Deploy documentation | ||
uses: nogsantos/scp-deploy@master | ||
uses: burnett01/[email protected] | ||
with: | ||
src: common/public/${{ env.PRODUCT }} | ||
host: ${{ secrets.DOCS_SSH_HOST }} | ||
remote: ${{ secrets.DOCS_QA_SSH_DIR }} | ||
user: ${{ secrets.DOCS_SSH_USER }} | ||
key: ${{ secrets.DOCS_SSH_KEY }} | ||
switches: -vzr --delete | ||
path: common/public/${{ env.PRODUCT }} | ||
remote_path: ${{ secrets.DOCS_QA_SSH_DIR }} | ||
remote_host: ${{ secrets.DOCS_SSH_HOST }} | ||
remote_user: ${{ secrets.DOCS_SSH_USER }} | ||
remote_key: ${{ secrets.DOCS_SSH_KEY }} |