👷 add Documenters.jl action

This commit is contained in:
Laureηt 2023-08-04 22:38:56 +02:00
parent 4da2a7bd9d
commit 6699877196
Signed by: Laurent
SSH key fingerprint: SHA256:kZEpW8cMJ54PDeCvOhzreNr4FSh6R13CMGH/POoO8DI
2 changed files with 30 additions and 0 deletions

26
.github/workflows/documentation.yml vendored Normal file
View 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

View file

@ -20,3 +20,7 @@ makedocs(;
"Beta Schedules" => "beta_schedules.md", "Beta Schedules" => "beta_schedules.md",
] ]
) )
deploydocs(
repo="github.com/Laurent2916/Diffusers.jl.git",
)