Skip to content

ruleset: Add RulsetCreated::try_clone() #43

ruleset: Add RulsetCreated::try_clone()

ruleset: Add RulsetCreated::try_clone() #43

Workflow file for this run

name: GitHub Pages
permissions:
contents: write
on:
push:
branches: [ main ]
env:
CARGO_TERM_COLOR: always
jobs:
rustdoc:
if: github.repository == 'landlock-lsm/rust-landlock'
runs-on: ubuntu-22.04
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v3
- name: Install Rust stable
run: |
rm ~/.cargo/bin/{cargo-fmt,rustfmt} || :
rustup default stable
rustup update
- name: Build documentation
run: rustup run stable cargo doc --no-deps
- name: Add index
run: |
echo '<meta http-equiv="refresh" content="0; url=landlock">' > target/doc/index.html
- name: Push documentation
uses: peaceiris/actions-gh-pages@068dc23d9710f1ba62e86896f84735d869951305 # v3.8.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: target/doc
force_orphan: true
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'