Skip to content

Merge pull request #1 from mir-protocol/dependabot/cargo/rustls-webpk… #12

Merge pull request #1 from mir-protocol/dependabot/cargo/rustls-webpk…

Merge pull request #1 from mir-protocol/dependabot/cargo/rustls-webpk… #12

Workflow file for this run

on:
push:
branches:
- main
name: Build and deploy docs
permissions:
pages: write
id-token: write
contents: read
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
build-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
components: rust-docs
- name: Build docs
uses: actions-rs/cargo@v1
with:
command: doc
args: --all-features
- name: Finalize documentation
run: |
echo "<meta http-equiv=\"refresh\" content=\"0; url=paladin\">" > target/doc/index.html
- name: Fix permissions
run: |
chmod -c -R +rX "target/doc/" | while read line; do
echo "::warning title=Invalid file permissions automatically fixed::$line"
done
- name: Upload as artifact
uses: actions/upload-pages-artifact@v2
with:
path: target/doc
deploy:
environment:
name: github-pages
url: https://mir-protocol.github.io/paladin
runs-on: ubuntu-latest
needs: build-docs
steps:
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2