Skip to content
This repository was archived by the owner on Sep 28, 2024. It is now read-only.

Commit c7af25d

Browse files
committed
ci: update documentation workflow to use centralised reusable workflow
1 parent 2bf7573 commit c7af25d

File tree

2 files changed

+18
-28
lines changed

2 files changed

+18
-28
lines changed

.github/workflows/CI.yml

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
name: CI
2-
env:
3-
DATADEPS_ALWAYS_ACCEPT: true
42
on:
53
push:
64
branches: '*'
@@ -46,29 +44,3 @@ jobs:
4644
files: lcov.info
4745
token: ${{ secrets.CODECOV_TOKEN }}
4846
fail_ci_if_error: true
49-
docs:
50-
name: Documentation
51-
runs-on: ubuntu-latest
52-
permissions:
53-
contents: write
54-
steps:
55-
- uses: actions/checkout@v4
56-
- uses: julia-actions/setup-julia@v2
57-
with:
58-
version: '1'
59-
- uses: julia-actions/julia-buildpkg@v1
60-
- uses: julia-actions/julia-docdeploy@v1
61-
env:
62-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
63-
- run: |
64-
julia --project=docs --code-coverage=user -e '
65-
using Documenter: DocMeta, doctest
66-
using NeuralOperators
67-
DocMeta.setdocmeta!(NeuralOperators, :DocTestSetup, :(using NeuralOperators); recursive=true)
68-
doctest(NeuralOperators)'
69-
- uses: julia-actions/julia-processcoverage@v1
70-
- uses: codecov/codecov-action@v4
71-
with:
72-
file: lcov.info
73-
token: ${{ secrets.CODECOV_TOKEN }}
74-
fail_ci_if_error: true
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: "Documentation"
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
tags: '*'
8+
pull_request:
9+
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+
14+
jobs:
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)