add: "rainbeam:nsfw_profile" mark #335
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docs | |
on: | |
push: | |
branches: [master] | |
workflow_dispatch: | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
concurrency: | |
group: deploy | |
cancel-in-progress: false | |
jobs: | |
build: | |
name: Rustdoc | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Checkout repo submodules | |
run: git submodule update --init --recursive | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Init Rust | |
uses: dtolnay/rust-toolchain@stable | |
- name: Configure cache | |
uses: Swatinem/rust-cache@v2 | |
- name: Configure pages | |
id: pages | |
uses: actions/configure-pages@v4 | |
- name: Init builder | |
run: cd crates/builder && npm i && cd ../../ | |
- name: Run builder | |
run: node ./crates/builder/index.js | |
- name: Clean docs directory | |
run: cargo clean --doc | |
- name: Build documentation | |
run: cargo doc --no-deps --document-private-items --workspace --exclude neospring-desktop | |
- name: Create index.html | |
run: echo '<meta http-equiv="refresh" content="0;url=rainbeam/index.html">' > target/doc/index.html | |
- name: Artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: target/doc | |
deploy: | |
name: Pages | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- name: Deploy to pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |