Skip to content

Prune p4rs dependencies #167

Prune p4rs dependencies

Prune p4rs dependencies #167

Workflow file for this run

name: Docs
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: generate documentation
run: cargo doc --no-deps
- name: generate book
run: |
cargo install mdbook
cd book/text
mdbook build
- name: prep deployment branch
if: github.ref == 'refs/heads/main'
run: |
mkdir -p dist
cp -r target/doc/* dist/
cp -r book/text/book dist/
cd dist
git init
git add -A
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git commit -m 'deploy'
- name: push deployment branch
uses: ad-m/github-push-action@v0.6.0
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
force: true
directory: ./dist