ci: remove documentation deployment
This commit is contained in:
1 parent
b50fb52613
commit
632bf9f01b
2 files changed
+1
-61
No files matched your search
@@ -1,58 +0,0 @@
|
|||||||
name: Documentation
|
|
||||||
|
|
||||||
on:
|
|
||||||
pull_request:
|
|
||||||
paths:
|
|
||||||
- "docs/**"
|
|
||||||
- ".github/workflows/docs.yml"
|
|
||||||
push:
|
|
||||||
branches: [main]
|
|
||||||
paths:
|
|
||||||
- "docs/**"
|
|
||||||
- ".github/workflows/docs.yml"
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
pages: write
|
|
||||||
id-token: write
|
|
||||||
|
|
||||||
concurrency:
|
|
||||||
group: "pages"
|
|
||||||
cancel-in-progress: false
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
name: Build Markdown manual
|
|
||||||
runs-on: ubuntu-24.04
|
|
||||||
steps:
|
|
||||||
- name: Check out source
|
|
||||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
||||||
|
|
||||||
- name: Configure GitHub Pages
|
|
||||||
uses: actions/configure-pages@v5
|
|
||||||
|
|
||||||
- name: Install mdBook
|
|
||||||
run: cargo install mdbook --version 0.5.3 --locked
|
|
||||||
|
|
||||||
- name: Build the site
|
|
||||||
run: mdbook build docs
|
|
||||||
|
|
||||||
- name: Upload Pages artifact
|
|
||||||
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
|
||||||
uses: actions/upload-pages-artifact@v4
|
|
||||||
with:
|
|
||||||
path: target/docs
|
|
||||||
|
|
||||||
deploy:
|
|
||||||
name: Deploy documentation
|
|
||||||
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
|
||||||
needs: build
|
|
||||||
environment:
|
|
||||||
name: github-pages
|
|
||||||
url: ${{ steps.deployment.outputs.page_url }}
|
|
||||||
runs-on: ubuntu-24.04
|
|
||||||
steps:
|
|
||||||
- name: Deploy to GitHub Pages
|
|
||||||
id: deployment
|
|
||||||
uses: actions/deploy-pages@v4
|
|
||||||
@@ -37,6 +37,4 @@ repository's Nix development shell provides the checked tool version:
|
|||||||
nix develop -c make -C docs build
|
nix develop -c make -C docs build
|
||||||
```
|
```
|
||||||
|
|
||||||
The generated static site is written to `target/docs/`. The GitHub Pages
|
The generated static site is written to `target/docs/`.
|
||||||
workflow builds that same output from `main`; enable **GitHub Actions** as the
|
|
||||||
repository's Pages publishing source once, then deployments are automatic.
|
|
||||||
Reference in new issue
Block a user