Skip to content

Commit 8d5a9ad

Browse files
committed
CI: Upload docs artifact in tar format
Instead of the format intended for ghpages, upload an artifact in prep to place on S3. Signed-off-by: David Brown <[email protected]>
1 parent 0aa7b96 commit 8d5a9ad

File tree

1 file changed

+13
-24
lines changed

1 file changed

+13
-24
lines changed

.github/workflows/docs.yml

Lines changed: 13 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -45,35 +45,24 @@ jobs:
4545
run: |
4646
# Note that the above build doesn't set Zephyrbase, so we'll need to do that here.
4747
west build -t rustdoc -b nrf52840dk/nrf52840 docgen
48-
mkdir docout
49-
mv build/rust/target/thumbv7em-none-eabi/doc docout/nostd
50-
cp docs/top-index.html docout/index.html
48+
mkdir rustdocs
49+
mv build/rust/target/thumbv7em-none-eabi/doc rustdocs/nostd
50+
cp docs/top-index.html rustdocs/index.html
5151
5252
- name: Build build documentation
5353
working-directory: zephyr-rust-lang
5454
run: |
5555
cd zephyr-build
5656
cargo doc
57-
mv target/doc ../docout/std
57+
mv target/doc ../rustdocs/std
5858
59-
- name: Upload artifact
60-
uses: actions/upload-pages-artifact@v3
61-
with:
62-
path: zephyr-rust-lang/docout
63-
64-
deploy:
65-
needs: generate-docs
66-
permissions:
67-
pages: write
68-
id-token: write
69-
70-
environment:
71-
name: github-pages
72-
url: ${{ steps.deployment.outputs.page_url }}
73-
74-
runs-on: ubuntu-latest
59+
- name: Compress docs
60+
working-directory: zephyr-rust-lang
61+
run: |
62+
tar --use-compress-program="xz -T0" -cf rustdocs.tar.xz rustdocs
7563
76-
steps:
77-
- name: Deploy to GitHub Pages
78-
id: deployment
79-
uses: actions/deploy-pages@v4
64+
- name: Upload docs artifact
65+
uses: actions/upload-artifact@v4
66+
with:
67+
name: rustdocs
68+
path: zephyr-rust-lang/rustdocs.tar.xz

0 commit comments

Comments
 (0)