Skip to content

Commit

Permalink
action to generate and publish docs
Browse files Browse the repository at this point in the history
  • Loading branch information
glowcoil committed Jun 3, 2023
1 parent 9ae8d57 commit f8c79c4
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Docs

on:
push:
branches:
master

env:
VST3_SDK_DIR: vst3sdk

jobs:
docs:
name: Generate and publish documentation
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3
with:
repository: coupler-rs/vst3_pluginterfaces
path: vst3sdk/pluginterfaces
- uses: dtolnay/rust-toolchain@stable
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install llvm-dev libclang-dev clang
- run: cargo doc --no-deps
- run: |
echo '<meta charset="utf-8"><meta http-equiv="refresh" content="0; url=vst3_bindgen">' > target/doc/index.html
- uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: target/doc
ssh-key: ${{ secrets.DOCS_DEPLOY_KEY }}

0 comments on commit f8c79c4

Please sign in to comment.