Skip to content

Commit 3d8f234

Browse files
committed
ci: update documentation workflow to use centralised reusable workflow
1 parent 81ed79c commit 3d8f234

File tree

1 file changed

+11
-21
lines changed

1 file changed

+11
-21
lines changed

.github/workflows/Documentation.yml

Lines changed: 11 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
name: Documentation
1+
name: "Documentation"
2+
23
on:
34
push:
45
branches:
@@ -7,24 +8,13 @@ on:
78
pull_request:
89
schedule:
910
- cron: '47 20 * * 0'
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+
1016
jobs:
11-
build:
12-
runs-on: ubuntu-latest
13-
steps:
14-
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
15-
- uses: julia-actions/setup-julia@latest
16-
with:
17-
version: '1'
18-
- name: Install dependencies
19-
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
20-
- name: Build and deploy
21-
env:
22-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token
23-
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # For authentication with SSH deploy key
24-
run: julia --project=docs/ docs/make.jl
25-
- uses: julia-actions/julia-processcoverage@v1
26-
with:
27-
directories: src
28-
- uses: codecov/codecov-action@v3
29-
with:
30-
files: lcov.info
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)