diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS
new file mode 100644
index 00000000..de6ff5ef
--- /dev/null
+++ b/.github/CODEOWNERS
@@ -0,0 +1 @@
+* @NotAShelf
diff --git a/.github/dependabot.yml b/.github/dependabot.yml
new file mode 100644
index 00000000..5ace4600
--- /dev/null
+++ b/.github/dependabot.yml
@@ -0,0 +1,6 @@
+version: 2
+updates:
+ - package-ecosystem: "github-actions"
+ directory: "/"
+ schedule:
+ interval: "weekly"
diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml
index 9f68a318..377b0869 100644
--- a/.github/workflows/doc.yml
+++ b/.github/workflows/doc.yml
@@ -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 '' > 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 '' > 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