mirror of
https://github.com/Laurent2916/Diffusers.jl.git
synced 2024-11-09 15:02:02 +00:00
👷 add Documenters.jl action
This commit is contained in:
parent
4da2a7bd9d
commit
6699877196
26
.github/workflows/documentation.yml
vendored
Normal file
26
.github/workflows/documentation.yml
vendored
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
name: Documentation
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
tags: '*'
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
statuses: write
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: julia-actions/setup-julia@v1
|
||||||
|
with:
|
||||||
|
version: '1.9'
|
||||||
|
- name: Install dependencies
|
||||||
|
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
|
||||||
|
- name: Build and deploy
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
run: julia --project=docs/ docs/make.jl
|
|
@ -20,3 +20,7 @@ makedocs(;
|
||||||
"Beta Schedules" => "beta_schedules.md",
|
"Beta Schedules" => "beta_schedules.md",
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
deploydocs(
|
||||||
|
repo="github.com/Laurent2916/Diffusers.jl.git",
|
||||||
|
)
|
||||||
|
|
Loading…
Reference in a new issue