Skip to content

Commit

Permalink
docgen: Generate a tar file for the doc artifact
Browse files Browse the repository at this point in the history
A tar.xz file is easier to deal with that a zip file containing a tar
file.

Signed-off-by: David Brown <[email protected]>
  • Loading branch information
d3zd3z committed Sep 19, 2024
1 parent 90213ff commit 1a09e5f
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,16 @@ jobs:
cargo doc
mv target/doc ../docout/std
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
- name: compress-docs
working-directory: zephyr-rust-lang
run: |
tar --use-compress-program="xz -T0" -cf rust-lang-html.tar.xz docout
- name: Upload build
uses: actions/upload-artifact@v4
with:
path: zephyr-rust-lang/docout
name: rust-lang-html
path: zephyr-rust-lang/rust-lang-html.tar.xz

deploy:
needs: generate-docs
Expand Down

0 comments on commit 1a09e5f

Please sign in to comment.