mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2024-12-29 18:55:06 +08:00
ci: improve docs upload/download perf (#480)
This commit is contained in:
parent
65d5af509e
commit
ccf67ac3f1
6
.github/workflows/build-test-docs.yml
vendored
6
.github/workflows/build-test-docs.yml
vendored
@ -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
|
6
.github/workflows/deploy-pages.yml
vendored
6
.github/workflows/deploy-pages.yml
vendored
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user