Skip to content

Commit b473e6d

Browse files
committed
docgen: Generate a tar file for the doc artifact
A tar.xz file is easier to deal with that a zip file containing a tar file. Signed-off-by: David Brown <[email protected]>
1 parent 90213ff commit b473e6d

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/docs.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,16 @@ jobs:
6767
cargo doc
6868
mv target/doc ../docout/std
6969
70+
- name: compress-docs
71+
working-directory: zephyr-rust-lang
72+
run: |
73+
tar --use-compress-program="xz -T0" -cf rust-lang-html.tar.xz docout
74+
7075
- name: Upload artifact
71-
uses: actions/upload-pages-artifact@v3
76+
uses: actions/upload-pages-artifact@v4
7277
with:
73-
path: zephyr-rust-lang/docout
78+
name: rust-lang-html
79+
path: zephyr-rust-lang/rust-lang-html.tar.xz
7480

7581
deploy:
7682
needs: generate-docs

0 commit comments

Comments
 (0)