Skip to content

add contribute page (#28) #25

add contribute page (#28)

add contribute page (#28) #25

Workflow file for this run

name: CI
on:
push:
branches:
- main
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: peaceiris/actions-mdbook@v2
with:
mdbook-version: "latest"
- name: Build mdbook
run: mdbook build --dest-dir out
- name: Cache Cargo registry and Cargo bin
id: cargo-cache
uses: actions/cache@v5
with:
path: |
~/.cargo/registry
~/.cargo/git
~/.cargo/bin
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock','**/Cargo.toml') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: Install mdbook-utils
if: steps.cargo-cache.outputs.cache-hit != 'true'
run: cargo install mdbook-utils
- name: Generate sitemap
run: mdbook-utils sitemap -o out/sitemap.xml -b https://rsdocsjp.org/ -y
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v4
with:
path: ./out
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy
id: deployment
uses: actions/deploy-pages@v4