ci: cleanup

This commit is contained in:
raf 2025-06-11 12:44:56 +03:00
commit 947876262e
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF
3 changed files with 38 additions and 12 deletions

1
.github/CODEOWNERS vendored Normal file
View file

@ -0,0 +1 @@
* @NotAShelf

6
.github/dependabot.yml vendored Normal file
View file

@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"

View file

@ -9,12 +9,12 @@ on:
- main
permissions:
contents: write
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
group: deploy
cancel-in-progress: false
jobs:
rustdoc:
@ -30,19 +30,38 @@ jobs:
- name: Install Rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Configure cache
uses: Swatinem/rust-cache@v2
- name: Setup pages
id: pages
uses: actions/configure-pages@v5
- name: Build Documentation
run: |
cargo doc --no-deps --workspace --all-features
echo '<meta http-equiv="refresh" content="0;url=mrc/index.html">' > target/doc/index.html
cargo clean --doc ; cargo doc --no-deps --workspace --all-features
- name: Deploy Docs
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./target/doc
publish_branch: gh-pages
- name: Add redirect
run: echo '<meta http-equiv="refresh" content="0;url=mrc/index.html">' > target/doc/index.html
- name: Remove lock file
run: rm target/doc/.lock
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: target/doc
deploy:
name: Deploy Documentation
runs-on: ubuntu-latest
needs: rustdoc
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4