Skip to content

Commit 17c4e4c

Browse files
committed
Fix publish-docs workflow to prevent over size limit atomvm_www Production branch
The "Production" branch of atomvm_www where www.atomvm.net is serverd via GitHub Pages can grow incredibly large over time and exced the 1 GB size limmit for a "Pages" branch on GitHub. This changes the workflow resets the branch to HEAD before commiting the new changes. All of the intermediary changes are not useful for this branch, those changes are tracked in the code that generates this content. We just want the one pevious commit as a fallback in the unlikely event a publication goes terribly wrong and the documentation buils system is broken and unable to push corrected changes. Signed-off-by: Winford <[email protected]>
1 parent 583f92b commit 17c4e4c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/publish-docs.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,14 @@ jobs:
119119
cp -av html "/__w/AtomVM/AtomVM/www/doc/${{ github.ref_name }}"
120120
- name: Commit files
121121
id: commit_files
122-
if: github.repository == 'atomvm/AtomVM'
122+
# if: github.repository == 'atomvm/AtomVM'
123123
working-directory: /home/runner/work/AtomVM/AtomVM/www
124124
run: |
125125
git config --local user.email "[email protected]"
126126
git config --local user.name "AtomVM Doc Bot"
127127
ls -la doc/
128+
git reset $(git commit-tree "HEAD^{tree}" -m "Live Production fallback")
129+
git log
128130
git status "doc/${{ github.ref_name }}"
129131
git add "doc/${{ github.ref_name }}"
130132
git add .

0 commit comments

Comments
 (0)