Merge pull request #2 from DogeDark/prerelease-docs

Prerelease docs
This commit is contained in:
Miles Murgaw authored and GitHub committed 2024-02-08 16:39:04 -05:00
commit 7f886e3888
1 file changed
+25 -38
+25 -38
View File
@@ -1,49 +1,36 @@
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:
name: Build & Deploy
runs-on: ubuntu-latest runs-on: ubuntu-latest
environment: docs permissions:
contents: write
steps: steps:
- name: Clone Repo
uses: actions/checkout@v4
# NOTE: Comment out when https://github.com/rust-lang/mdBook/pull/1306 is merged and released - name: Set up cargo cache
# - name: Setup mdBook uses: Swatinem/rust-cache@v2
# uses: peaceiris/actions-mdbook@v1 with:
# with: prefix-key: "v0-docs"
# mdbook-version: "0.4.10"
# NOTE: Delete when the previous one is enabled - name: cargo doc
- name: Setup mdBook run: cargo doc --no-deps --workspace
run: |
cargo install mdbook --git https://github.com/Demonthos/mdBook.git --branch master
- uses: actions/checkout@v4
- name: Build - name: upload artifacts
run: cd docs && uses: actions/upload-pages-artifact@v3
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: Deploy
uses: JamesIves/github-pages-deploy-action@v4.5.0 uses: JamesIves/github-pages-deploy-action@v4.5.0
with: with:
branch: gh-pages # The branch the action should deploy to. branch: gh-pages-docs
folder: docs/nightly # The folder the action should deploy. folder: target/doc
target-folder: docs/nightly #target-folder: docs
repository-name: dioxuslabs/docsite #repository-name:
clean: false
token: ${{ secrets.DEPLOY_KEY }} # let's pretend I don't need it for now