Skip to content

Commit 6951e68

Browse files
authored
handle big sizes
1 parent 328f9e6 commit 6951e68

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/publish-apidocs.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,19 @@ jobs:
8383
- name: Build with phpDocumentor
8484
run: php -d xdebug.mode=off ${{ github.workspace }}/tools/phpDocumentor run -vv -d source --target docs --cache-folder phpdoc-cache --template default --title 'Moodle PHP API'
8585

86+
- name: Count files and get disk space
87+
run: |
88+
echo "Total files:"
89+
find docs -type f | wc -l
90+
91+
echo "Total disk space used by docs directory:"
92+
du -sh docs
93+
94+
- name: Free disk space (Ubuntu)
95+
uses: jlumbroso/free-disk-space@main
96+
with:
97+
tool-cache: false
98+
8699
- name: Upload artifact to GitHub Pages
87100
uses: actions/upload-pages-artifact@v3
88101
with:

0 commit comments

Comments
 (0)