Skip to content

Commit ddd3e80

Browse files
committed
CI: Push docs just as zip file
The action is already pushing the artifact as a zip file, and these aren't large enough to warrant the xz compression step. Download the artifact and look at the resultant directory. Signed-off-by: David Brown <[email protected]>
1 parent 8d5a9ad commit ddd3e80

File tree

1 file changed

+20
-6
lines changed

1 file changed

+20
-6
lines changed

.github/workflows/docs.yml

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,27 @@ jobs:
5656
cargo doc
5757
mv target/doc ../rustdocs/std
5858
59-
- name: Compress docs
60-
working-directory: zephyr-rust-lang
61-
run: |
62-
tar --use-compress-program="xz -T0" -cf rustdocs.tar.xz rustdocs
63-
6459
- name: Upload docs artifact
6560
uses: actions/upload-artifact@v4
6661
with:
6762
name: rustdocs
68-
path: zephyr-rust-lang/rustdocs.tar.xz
63+
path: zephyr-rust-lang/rustdocs
64+
65+
doc-publish:
66+
name: Publish Rust Documentation
67+
needs: generate-docs
68+
runs-on: ubuntu-latest
69+
if: |
70+
github.event.workflow_run.event == 'pull_request' &&
71+
github.event.workflow_run.conclusion == 'success' &&
72+
github.repository == 'zephyrproject-rtos/zephyr-rust-lang'
73+
74+
steps:
75+
- name: Download documentation artifact
76+
uses: actions/download-artifact@v3
77+
with:
78+
name: rustdocs
79+
80+
- name: Show our tree
81+
run: |
82+
find . -ls

0 commit comments

Comments
 (0)