dioxus/.github/workflows/docs.yml

39 lines
1 KiB
YAML
Raw Normal View History

2024-02-08 21:31:46 +00:00
name: Deploy Nightly Docs
2022-02-10 16:18:36 +00:00
on:
2024-02-08 21:31:46 +00:00
push:
branches:
- master
2023-07-19 19:50:28 +00:00
2022-02-10 16:18:36 +00:00
jobs:
2024-02-08 21:33:28 +00:00
deploy:
2024-02-08 21:35:59 +00:00
name: Build & Deploy
2024-02-08 21:34:15 +00:00
runs-on: ubuntu-latest
permissions:
contents: write
2024-02-08 21:31:46 +00:00
2024-02-08 21:34:15 +00:00
steps:
2024-02-08 22:14:52 +00: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 18:15:59 +00:00
- uses: dtolnay/rust-toolchain@nightly
with:
toolchain: nightly-2024-02-01
2024-02-08 22:14:52 +00:00
- uses: Swatinem/rust-cache@v2
2024-02-08 22:17:06 +00:00
with:
cache-all-crates: "true"
save-if: ${{ github.ref == 'refs/heads/master' }}
- uses: ilammy/setup-nasm@v1
2022-02-10 16:18:36 +00:00
2024-02-08 21:34:15 +00:00
- name: cargo doc
2024-02-09 18:15:59 +00:00
run: cargo doc --no-deps --workspace --all-features
2022-02-10 16:18:36 +00:00
2024-02-08 21:34:15 +00:00
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4.5.0
with:
2024-02-09 18:31:53 +00:00
branch: gh-pages
2024-02-08 21:34:15 +00:00
folder: target/doc
target-folder: api-docs/nightly
repository-name: dioxuslabs/docsite
clean: false
token: ${{ secrets.DEPLOY_KEY }}