dioxus/.github/workflows/docs.yml

38 lines
985 B
YAML
Raw Normal View History

2024-02-08 16:31:46 -05:00
name: Deploy Nightly Docs
2022-02-10 11:18:36 -05:00
on:
2024-02-08 16:31:46 -05:00
push:
branches:
- master
2023-07-19 12:50:28 -07:00
2022-02-10 11:18:36 -05:00
jobs:
2024-02-08 16:33:28 -05:00
deploy:
2024-02-08 16:35:59 -05:00
name: Build & Deploy
2024-02-08 16:34:15 -05:00
runs-on: ubuntu-latest
permissions:
contents: write
2024-02-08 16:31:46 -05:00
2024-02-08 16:34:15 -05:00
steps:
2024-02-08 17:14:52 -05:00
- uses: actions/checkout@v4
- run: sudo apt-get update
- run: sudo apt install libwebkit2gtk-4.1-dev libgtk-3-dev libayatana-appindicator3-dev libxdo-dev
2024-02-09 12:15:59 -06:00
- uses: dtolnay/rust-toolchain@nightly
with:
toolchain: nightly-2024-02-01
2024-02-08 17:14:52 -05:00
- uses: Swatinem/rust-cache@v2
2024-02-08 17:17:06 -05:00
with:
cache-all-crates: "true"
save-if: ${{ github.ref == 'refs/heads/master' }}
- uses: ilammy/setup-nasm@v1
2022-02-10 11:18:36 -05:00
2024-02-08 16:34:15 -05:00
- name: cargo doc
2024-02-09 12:15:59 -06:00
run: cargo doc --no-deps --workspace --all-features
2022-02-10 11:18:36 -05:00
2024-02-08 16:34:15 -05:00
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4.5.0
with:
2024-02-09 12:31:53 -06:00
branch: gh-pages
2024-02-08 16:34:15 -05:00
folder: target/doc
target-folder: api-docs/nightly
repository-name: dioxuslabs/docsite
clean: false