dioxus/.github/workflows/docs.yml

35 lines
817 B
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
- main
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
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
2022-02-10 16:18:36 +00:00
2024-02-08 21:34:15 +00:00
- name: cargo doc
2024-02-08 22:14:52 +00:00
run: cargo doc --no-deps --workspace
2022-02-10 16:18:36 +00:00
2024-02-08 21:34:15 +00:00
- name: upload artifacts
uses: actions/upload-pages-artifact@v3
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:
branch: gh-pages-docs
folder: target/doc
#target-folder: docs
#repository-name: