feat: prerelease docs

This commit is contained in:
Miles Murgaw committed 2024-02-08 16:31:46 -05:00
1 parent 53343bfd19
commit fb2e77a68a
1 file changed
+28 -42
+28 -42
View File
@@ -1,49 +1,35 @@
name: github pages name: Deploy Nightly Docs
on: on:
workflow_dispatch: push:
# push: branches:
# paths: - master
# - docs/** - main
# - .github/workflows/docs.yml
# branches:
# - master
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs: jobs:
build-deploy: deploy: Deploy
runs-on: ubuntu-latest runs-on: ubuntu-latest
environment: docs permissions:
steps: contents: write
# NOTE: Comment out when https://github.com/rust-lang/mdBook/pull/1306 is merged and released steps:
# - name: Setup mdBook - name: Clone Repo
# uses: peaceiris/actions-mdbook@v1 uses: actions/checkout@v4
# with:
# mdbook-version: "0.4.10"
# NOTE: Delete when the previous one is enabled - name: Set up cargo cache
- name: Setup mdBook uses: Swatinem/rust-cache@v2
run: | with:
cargo install mdbook --git https://github.com/Demonthos/mdBook.git --branch master prefix-key: "v0-docs"
- uses: actions/checkout@v4
- name: Build - name: cargo doc
run: cd docs && run: cargo doc --no-deps --workspace
cd guide && mdbook build -d ../nightly/guide && cd .. &&
cd router && mdbook build -d ../nightly/router && cd ..
# cd reference && mdbook build -d ../nightly/reference && cd .. &&
# cd fermi && mdbook build -d ../nightly/fermi && cd ..
- name: Deploy 🚀 - name: upload artifacts
uses: JamesIves/github-pages-deploy-action@v4.5.0 uses: actions/upload-pages-artifact@v3
with:
branch: gh-pages # The branch the action should deploy to. - name: Deploy
folder: docs/nightly # The folder the action should deploy. uses: JamesIves/github-pages-deploy-action@v4.5.0
target-folder: docs/nightly with:
repository-name: dioxuslabs/docsite branch: gh-pages-docs
clean: false folder: target/doc
token: ${{ secrets.DEPLOY_KEY }} # let's pretend I don't need it for now #target-folder: docs
#repository-name: