mirror of
https://github.com/edg-l/edlang.git
synced 2024-11-22 16:08:24 +00:00
feat: add docs generation
This commit is contained in:
parent
937eca28b6
commit
58d01815d8
35
.github/workflows/docs.yml
vendored
Normal file
35
.github/workflows/docs.yml
vendored
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
name: Deploy Docs to GitHub Pages
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- MASTER
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
publish-docs:
|
||||||
|
name: GitHub Pages
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: dtolnay/rust-toolchain@stable
|
||||||
|
- uses: Swatinem/rust-cache@v2
|
||||||
|
- name: add llvm deb repository
|
||||||
|
uses: myci-actions/add-deb-repo@10
|
||||||
|
with:
|
||||||
|
repo: deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-17 main
|
||||||
|
repo-name: llvm-repo
|
||||||
|
keys-asc: https://apt.llvm.org/llvm-snapshot.gpg.key
|
||||||
|
- name: Install LLVM
|
||||||
|
run: sudo apt-get install llvm-17 llvm-17-dev llvm-17-runtime clang-17 clang-tools-17 lld-17 libpolly-17-dev libmlir-17-dev mlir-17-tools
|
||||||
|
- name: Build docs
|
||||||
|
run: make doc
|
||||||
|
- name: Deploy Documentation
|
||||||
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
|
with:
|
||||||
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
publish_branch: gh-pages
|
||||||
|
publish_dir: ./target/doc/
|
||||||
|
keep_files: false
|
Loading…
Reference in a new issue