Skip to content

Commit 06435db

Browse files
author
Excodibur
committed
fix gh-pages doc symlink (6)
1 parent b3c7617 commit 06435db

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.github/workflows/publish-docs.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,6 @@ jobs:
6464
exclude_assets: '**.adoc,*/**.adoc,*/**.sh'
6565
keep_files: true
6666
destination_dir: ${{ steps.prepare_tag.outputs.deploy_tag_name }}
67-
tag_name: ${{ steps.prepare_tag.outputs.deploy_tag_name }}
68-
tag_message: 'Deployment ${{ steps.prepare_tag.outputs.tag_name }}'
6967

7068
# Change latest link in case there is a new documentation available
7169
- name : Modify gh-pages branch
@@ -78,10 +76,16 @@ jobs:
7876
run: |
7977
echo "tag is latest. need to update latest-symlink in gh-pages branch"
8078
ln -f -s ${{ steps.prepare_tag.outputs.deploy_tag_name }} latest
81-
git config user.name Excodibur
82-
git add latest
83-
git commit --amend -m "updated symlink to ${{ steps.prepare_tag.outputs.deploy_tag_name }}"
84-
git push gh-pages
79+
80+
- name: Commit changes
81+
uses: EndBug/add-and-commit@v7
82+
with:
83+
add: latest
84+
author_name: Excodibur
85+
branch: gh-pages
86+
message: updated symlink latest to ${{ steps.prepare_tag.outputs.deploy_tag_name }}
87+
tag: ${{ steps.prepare_tag.outputs.deploy_tag_name }}
88+
8589

8690

8791

0 commit comments

Comments
 (0)