Skip to content

Commit b809696

Browse files
authored
Update docs
1 parent 01dbae6 commit b809696

File tree

2 files changed

+23
-233
lines changed

2 files changed

+23
-233
lines changed

.github/workflows/CI.yml

Lines changed: 23 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,22 +41,35 @@ jobs:
4141
token: ${{ secrets.CODECOV_TOKEN }}
4242
docs:
4343
name: Documentation
44-
runs-on: ubuntu-latest
44+
45+
on:
46+
push:
47+
branches:
48+
- main # update to match your development branch (master, main, dev, trunk, ...)
49+
tags: '*'
50+
pull_request:
51+
52+
concurrency:
53+
group: ${{ github.workflow }}-${{ github.ref }}
54+
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
55+
56+
jobs:
57+
docs:
4558
permissions:
4659
contents: write
60+
pull-requests: read
4761
statuses: write
62+
runs-on: ubuntu-latest
4863
steps:
4964
- uses: actions/checkout@v4
5065
- uses: julia-actions/setup-julia@v2
5166
with:
5267
version: '1'
53-
- uses: julia-actions/julia-buildpkg@v1
54-
- uses: julia-actions/julia-docdeploy@v1
68+
- uses: julia-actions/cache@v2
69+
- name: Install dependencies
70+
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
71+
- name: Build and deploy
5572
env:
56-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
57-
- run: |
58-
julia --project=docs -e '
59-
using Documenter: DocMeta, doctest
60-
using SimpleWeightedGraphs
61-
DocMeta.setdocmeta!(SimpleWeightedGraphs, :DocTestSetup, :(using SimpleWeightedGraphs); recursive=true)
62-
doctest(SimpleWeightedGraphs)'
73+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # If authenticating with GitHub Actions token
74+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # If authenticating with SSH deploy key
75+
run: julia --project=docs/ docs/make.jl

docs/Manifest.toml

Lines changed: 0 additions & 223 deletions
This file was deleted.

0 commit comments

Comments
 (0)