Skip to content

Commit

Permalink
Try new action for docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerjthomas9 authored Jul 16, 2024
1 parent 1a937f3 commit 6bd2614
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions .github/workflows/Docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,28 @@ on:
- 'src/**'
- 'docs/**'
jobs:
Documentation:
docs:
name: Documentation
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: read # Required when using `push_preview=true`
statuses: write
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@latest
- uses: julia-actions/setup-julia@v1
with:
version: 1
- uses: julia-actions/cache@v2 # https://github.com/julia-actions/cache
- uses: julia-actions/julia-docdeploy@releases/v1
version: '1'
- name: Configure doc environment
shell: julia --project=docs --color=yes {0}
run: |
using Pkg
Pkg.develop(PackageSpec(path=pwd()))
Pkg.instantiate()
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-docdeploy@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run doctests
shell: julia --project=docs --color=yes {0}
run: docs/make.jl

0 comments on commit 6bd2614

Please sign in to comment.