diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 13e3ff9..a0b743a 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -4,6 +4,7 @@ on: branches: [main] tags: [v*] pull_request: + jobs: build: name: Documentation @@ -13,10 +14,8 @@ jobs: - uses: julia-actions/setup-julia@latest with: version: '1.6' - - name: Install dependencies - run: julia --color=yes --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()' - - name: Build and deploy + - uses: julia-actions/julia-buildpkg@latest + - uses: julia-actions/julia-docdeploy@latest env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # If authenticating with GitHub Actions token - DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # If authenticating with SSH deploy key - run: julia --color=yes --project=docs/ docs/make.jl + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} diff --git a/README.md b/README.md index 7af3e97..bccf9d2 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ [![codecov](https://codecov.io/gh/JuliaFirstOrder/PiecewiseQuadratics.jl/branch/main/graph/badge.svg?token=DwCCsdwIgc)](https://codecov.io/gh/JuliaFirstOrder/PiecewiseQuadratics.jl) [![](https://img.shields.io/badge/docs-stable-blue.svg)](https://juliafirstorder.github.io/PiecewiseQuadratics.jl/stable) -[![](https://img.shields.io/badge/docs-latest-blue.svg)](https://juliafirstorder.github.io/PiecewiseQuadratics.jl/latest) +[![](https://img.shields.io/badge/docs-dev-blue.svg)](https://juliafirstorder.github.io/PiecewiseQuadratics.jl/dev) **PiecewiseQuadratics.jl** is a [Julia](http://julialang.org) package for manipulation of univariate piecewise quadratic functions of the form ``` diff --git a/docs/make.jl b/docs/make.jl index ec6e782..6917efd 100644 --- a/docs/make.jl +++ b/docs/make.jl @@ -37,4 +37,5 @@ makedocs( deploydocs(; repo = "github.com/JuliaFirstOrder/PiecewiseQuadratics.jl.git", devbranch = "main", + push_preview = true, )