mirror of
https://github.com/NotAShelf/mpvrc.git
synced 2026-04-18 16:49:53 +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
|
- main
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: read
|
||||||
pages: write
|
pages: write
|
||||||
|
id-token: write
|
||||||
concurrency:
|
concurrency:
|
||||||
group: "pages"
|
group: deploy
|
||||||
cancel-in-progress: true
|
cancel-in-progress: false
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
rustdoc:
|
rustdoc:
|
||||||
|
|
@ -30,19 +30,38 @@ jobs:
|
||||||
- name: Install Rust toolchain
|
- name: Install Rust toolchain
|
||||||
uses: actions-rust-lang/setup-rust-toolchain@v1
|
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
|
- name: Build Documentation
|
||||||
run: |
|
run: |
|
||||||
cargo doc --no-deps --workspace --all-features
|
cargo clean --doc ; cargo doc --no-deps --workspace --all-features
|
||||||
echo '<meta http-equiv="refresh" content="0;url=mrc/index.html">' > target/doc/index.html
|
|
||||||
|
|
||||||
- name: Deploy Docs
|
- name: Add redirect
|
||||||
uses: peaceiris/actions-gh-pages@v4
|
run: echo '<meta http-equiv="refresh" content="0;url=mrc/index.html">' > target/doc/index.html
|
||||||
with:
|
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
- name: Remove lock file
|
||||||
publish_dir: ./target/doc
|
run: rm target/doc/.lock
|
||||||
publish_branch: gh-pages
|
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-pages-artifact@v3
|
uses: actions/upload-pages-artifact@v3
|
||||||
with:
|
with:
|
||||||
path: target/doc
|
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