Skip to content

compile_and_execute #39

compile_and_execute

compile_and_execute #39

Workflow file for this run

name: Docs
on: [push]
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- name: Generate Docs
run: |
cargo doc --no-deps --all-features --workspace
- name: Deploy
uses: khonsulabs/sync-to-dossier@main
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/release' || startsWith(github.ref, 'refs/tags/')
with:
url: ${{ secrets.DOSSIER_URL }}
api-key-id: ${{ secrets.DOSSIER_API_KEY_ID }}
api-key: ${{ secrets.DOSSIER_API_KEY }}
project: muse
from: target/doc/
to: /${{ github.ref_name }}/docs
guide:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- name: Download mdbook
run: |
curl -sSL https://github.com/rust-lang/mdBook/releases/download/v0.4.36/mdbook-v0.4.36-x86_64-unknown-linux-gnu.tar.gz | tar -xz
- name: Build Guide
run: |
./mdbook build guide
- name: Deploy
uses: khonsulabs/sync-to-dossier@main
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/release' || startsWith(github.ref, 'refs/tags/')
with:
url: ${{ secrets.DOSSIER_URL }}
api-key-id: ${{ secrets.DOSSIER_API_KEY_ID }}
api-key: ${{ secrets.DOSSIER_API_KEY }}
project: muse
from: target/guide/
to: /${{ github.ref_name }}/guide