Skip to content

Commit 391ae57

Browse files
committed
CI: publish-docs: workaround issue
Switching to containers changed how paths are handled, making it difficult to debug. There is some kind of magic here, caution when changing this. Signed-off-by: Davide Bettio <davide@uninstall.it>
1 parent 878f522 commit 391ae57

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)