mirror of
https://github.com/NotAShelf/mpvrc.git
synced 2026-04-15 15:33:47 +00:00
ci: cleanup
This commit is contained in:
parent
db35594121
commit
947876262e
3 changed files with 38 additions and 12 deletions
1
.github/CODEOWNERS
vendored
Normal file
1
.github/CODEOWNERS
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
* @NotAShelf
|
||||
6
.github/dependabot.yml
vendored
Normal file
6
.github/dependabot.yml
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
version: 2
|
||||
updates:
|
||||
- package-ecosystem: "github-actions"
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: "weekly"
|
||||
43
.github/workflows/doc.yml
vendored
43
.github/workflows/doc.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue