mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-12-03 17:39:11 +00:00
36 lines
No EOL
729 B
YAML
36 lines
No EOL
729 B
YAML
name: Deploy Nightly Docs
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- main
|
|
|
|
jobs:
|
|
deploy:
|
|
name: deploy
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write
|
|
|
|
steps:
|
|
- name: Clone Repo
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up cargo cache
|
|
uses: Swatinem/rust-cache@v2
|
|
with:
|
|
prefix-key: "v0-docs"
|
|
|
|
- name: cargo doc
|
|
run: cargo doc --no-deps --workspace
|
|
|
|
- name: upload artifacts
|
|
uses: actions/upload-pages-artifact@v3
|
|
|
|
- name: Deploy
|
|
uses: JamesIves/github-pages-deploy-action@v4.5.0
|
|
with:
|
|
branch: gh-pages-docs
|
|
folder: target/doc
|
|
#target-folder: docs
|
|
#repository-name: |