dioxus/.github/workflows/docs.yml

36 lines
752 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:
- name: Clone Repo
uses: actions/checkout@v4
2022-02-10 16:18:36 +00:00
2024-02-08 21:34:15 +00:00
- name: Set up cargo cache
uses: Swatinem/rust-cache@v2
with:
2024-02-08 21:41:11 +00:00
prefix-key: 'v0-docs'
2024-02-08 21:34:15 +00:00
- name: cargo doc
2024-02-08 21:50:23 +00:00
run: cargo doc --no-deps --workspace --keep-going
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: