dioxus/.github/workflows/docs.yml
Workflow config file is invalid. Please check your config file: yaml: line 10: mapping values are not allowed in this context
2024-02-08 17:30:32 -05:00

39 lines
No EOL
1,023 B
YAML

name: Deploy Nightly Docs
on:
push:
branches:
- master
jobs:
deploy:
if: github.event.pull_request.draft == false
name: Build & Deploy
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- 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
with:
cache-all-crates: "true"
save-if: ${{ github.ref == 'refs/heads/master' }}
- uses: ilammy/setup-nasm@v1
- name: cargo doc
run: cargo doc --no-deps --workspace --features fullstack/server
- 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: