Skip to content

Commit fac89c1

Browse files
committed
Merge pull request #1339 from bettio/workaround-ci-publish-bug
Workaround publish-docs issue This should be the last fix. These changes are made under both the "Apache 2.0" and the "GNU Lesser General Public License 2.1 or later" license terms (dual license). SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later
2 parents 878f522 + 391ae57 commit fac89c1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/publish-docs.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,8 @@ jobs:
115115
cmake ..
116116
cd doc
117117
make GitHub_CI_Publish_Docs
118-
118+
rm -frv "/__w/AtomVM/AtomVM/www/doc/${{ github.ref_name }}"
119+
cp -av html "/__w/AtomVM/AtomVM/www/doc/${{ github.ref_name }}"
119120
- name: Commit files
120121
id: commit_files
121122
if: github.repository == 'atomvm/AtomVM'
@@ -124,6 +125,8 @@ jobs:
124125
git config --local user.email "atomvm-doc-bot@users.noreply.github.com"
125126
git config --local user.name "AtomVM Doc Bot"
126127
ls -la doc/
128+
git status "doc/${{ github.ref_name }}"
129+
git add "doc/${{ github.ref_name }}"
127130
git add .
128131
git diff --exit-code Production || echo "Going to commit"
129132
git diff --exit-code Production || git commit -m "Update Documentation"

0 commit comments

Comments
 (0)