ci: improve docs upload/download perf (#480)

This commit is contained in:
bd_ 2023-10-08 16:23:16 +09:00 committed by GitHub
parent 65d5af509e
commit ccf67ac3f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 1 deletions

View File

@ -79,9 +79,13 @@ jobs:
if [ -e docs~/robots.txt ]; then
cp docs~/robots.txt docs~/build/robots.txt
fi
- name: Package documentation
run: |
tar -cf docs.tar -C docs~/build .
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: ${{ inputs.artifact || 'docs' }}
path: docs~/build
path: docs.tar

View File

@ -83,6 +83,12 @@ jobs:
run: |
ls -lR docs/build
- name: Unpack documentation
run: |
tar -xf docs/build/docs.tar -C docs/build
tar -xf docs/build/dev/docs.tar -C docs/build/dev
rm -f docs/build/docs.tar docs/build/dev/docs.tar
- name: Setup Pages
uses: actions/configure-pages@v3