Skip to content

Rename file to lp-min_cost_max_bipartite_matching.rs #3

Rename file to lp-min_cost_max_bipartite_matching.rs

Rename file to lp-min_cost_max_bipartite_matching.rs #3

Workflow file for this run

name: Deploy Cargo Doc to GitHub Pages
on:
push:
branches: ["main"]
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
- name: Build Documentation
# --no-deps: 依存クレートのドキュメントを含めない(ビルド時間短縮)。必要なら外してください。
# --document-private-items: privateな関数などもドキュメント化する(勉強用なら便利です)。
run: cargo doc
- name: Create Redirect Index
# GitHub Pagesはルートのindex.htmlを探しますが、cargo docは target/doc/クレート名/index.html に生成します。
# そのため、ルートにリダイレクト用のHTMLを作成します。
# 注意: "study_combinatorial_optimization" の部分は Cargo.toml の [package] name と一致させてください。
run: echo '<meta http-equiv="refresh" content="0;url=study_combinatorial_optimization/index.html">' > target/doc/index.html
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: 'target/doc'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4