Skip to content

Commit d0bc227

Browse files
committed
ci: update documentation workflow to use centralised reusable workflow
1 parent 29def5b commit d0bc227

File tree

1 file changed

+9
-24
lines changed

1 file changed

+9
-24
lines changed

.github/workflows/Documentation.yml

+9-24
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,18 @@
1-
name: Documentation
1+
name: "Documentation"
22

33
on:
44
push:
55
branches:
66
- master
7-
- 'release-'
87
tags: '*'
98
pull_request:
109

10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: ${{ github.ref_name != github.event.repository.default_branch || github.ref != 'refs/tags/v*' }}
13+
1114
jobs:
12-
build:
13-
runs-on: ubuntu-latest
14-
steps:
15-
- uses: actions/checkout@v4
16-
- uses: julia-actions/setup-julia@latest
17-
with:
18-
version: '1'
19-
- name: Install dependencies
20-
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
21-
- name: Build and deploy
22-
env:
23-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token
24-
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # For authentication with SSH deploy key
25-
run: julia --project=docs/ --code-coverage=user docs/make.jl
26-
- uses: julia-actions/julia-processcoverage@v1
27-
with:
28-
directories: src
29-
- uses: codecov/codecov-action@v4
30-
with:
31-
files: lcov.info
32-
token: ${{ secrets.CODECOV_TOKEN }}
33-
fail_ci_if_error: true
15+
build-and-deploy-docs:
16+
name: "Documentation"
17+
uses: "SciML/.github/.github/workflows/documentation.yml@v1"
18+
secrets: "inherit"

0 commit comments

Comments
 (0)