Skip to content

Commit 480cc58

Browse files
committed
ci: update documentation workflow to use centralised reusable workflow
1 parent 1d5bd67 commit 480cc58

File tree

1 file changed

+10
-22
lines changed

1 file changed

+10
-22
lines changed

.github/workflows/Documentation.yml

Lines changed: 10 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +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: '51 14 * * 6'
11+
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+
1216
jobs:
13-
build:
14-
runs-on: ubuntu-latest
15-
steps:
16-
- uses: actions/checkout@v4
17-
- uses: julia-actions/setup-julia@latest
18-
with:
19-
version: '1'
20-
- name: Install dependencies
21-
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
22-
- name: Build and deploy
23-
env:
24-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token
25-
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # For authentication with SSH deploy key
26-
run: julia --project=docs/ --code-coverage=user docs/make.jl
27-
- uses: julia-actions/julia-processcoverage@v1
28-
- uses: codecov/codecov-action@v4
29-
with:
30-
file: lcov.info
31-
token: ${{ secrets.CODECOV_TOKEN }}
32-
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)