Skip to content

Commit 55d8fcd

Browse files
committed
ci: update documentation workflow to use centralised reusable workflow
1 parent 2d347a3 commit 55d8fcd

File tree

1 file changed

+9
-22
lines changed

1 file changed

+9
-22
lines changed
Lines changed: 9 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,20 @@
1-
name: Documentation
1+
name: "Documentation"
22

33
on:
44
push:
55
branches:
66
- master
7-
- 'release-'
87
tags: '*'
98
pull_request:
109
schedule:
1110
- cron: '57 0 * * 5'
1211

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

0 commit comments

Comments
 (0)