separated documenter action
parent
e92c8d9208
commit
60083d2833
|
@ -12,6 +12,7 @@ on:
|
||||||
- '.github/workflows/cffvalidation.yml'
|
- '.github/workflows/cffvalidation.yml'
|
||||||
- '.github/workflows/CompatHelper.yml'
|
- '.github/workflows/CompatHelper.yml'
|
||||||
- '.github/workflows/debug.yml'
|
- '.github/workflows/debug.yml'
|
||||||
|
- '.github/workflows/documenter.yml'
|
||||||
- '.github/workflows/JuliaRegister.yml'
|
- '.github/workflows/JuliaRegister.yml'
|
||||||
- '.github/workflows/release.yml'
|
- '.github/workflows/release.yml'
|
||||||
- '.github/workflows/TagBot.yml'
|
- '.github/workflows/TagBot.yml'
|
||||||
|
@ -28,6 +29,7 @@ on:
|
||||||
- '.github/workflows/cffvalidation.yml'
|
- '.github/workflows/cffvalidation.yml'
|
||||||
- '.github/workflows/CompatHelper.yml'
|
- '.github/workflows/CompatHelper.yml'
|
||||||
- '.github/workflows/debug.yml'
|
- '.github/workflows/debug.yml'
|
||||||
|
- '.github/workflows/documenter.yml'
|
||||||
- '.github/workflows/JuliaRegister.yml'
|
- '.github/workflows/JuliaRegister.yml'
|
||||||
- '.github/workflows/release.yml'
|
- '.github/workflows/release.yml'
|
||||||
- '.github/workflows/TagBot.yml'
|
- '.github/workflows/TagBot.yml'
|
||||||
|
@ -59,7 +61,7 @@ jobs:
|
||||||
- x64
|
- x64
|
||||||
# - aarch64
|
# - aarch64
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- uses: julia-actions/setup-julia@v1
|
- uses: julia-actions/setup-julia@v1
|
||||||
with:
|
with:
|
||||||
version: ${{ matrix.version }}
|
version: ${{ matrix.version }}
|
||||||
|
@ -67,22 +69,3 @@ jobs:
|
||||||
- uses: julia-actions/cache@v1
|
- uses: julia-actions/cache@v1
|
||||||
- uses: julia-actions/julia-buildpkg@v1
|
- uses: julia-actions/julia-buildpkg@v1
|
||||||
- uses: julia-actions/julia-runtest@v1
|
- uses: julia-actions/julia-runtest@v1
|
||||||
docs:
|
|
||||||
name: Documentation
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- uses: julia-actions/setup-julia@v1
|
|
||||||
with:
|
|
||||||
version: '1'
|
|
||||||
- uses: julia-actions/julia-buildpkg@v1
|
|
||||||
- uses: julia-actions/julia-docdeploy@v1
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
|
|
||||||
- run: |
|
|
||||||
julia --project=docs -e '
|
|
||||||
using Documenter: DocMeta, doctest
|
|
||||||
using TrainRuns
|
|
||||||
DocMeta.setdocmeta!(TrainRuns, :DocTestSetup, :(using TrainRuns); recursive=true)
|
|
||||||
doctest(TrainRuns)'
|
|
||||||
|
|
|
@ -13,14 +13,14 @@ on:
|
||||||
## A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
## A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
# debug:
|
debug:
|
||||||
# name: "debug"
|
name: "debug"
|
||||||
# outputs:
|
outputs:
|
||||||
# runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# steps:
|
steps:
|
||||||
# - name: "checkout"
|
- name: "checkout"
|
||||||
# # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||||
# uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
# ## opening a debug console
|
# ## opening a debug console
|
||||||
# - name: Setup upterm session
|
# - name: Setup upterm session
|
||||||
|
|
|
@ -0,0 +1,27 @@
|
||||||
|
name: Documentation
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main # update to match your development branch (master, main, dev, trunk, ...)
|
||||||
|
tags: '*'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: julia-actions/setup-julia@v1
|
||||||
|
with:
|
||||||
|
version: '1'
|
||||||
|
- name: Install dependencies
|
||||||
|
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
|
||||||
|
- name: Build and deploy
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # If authenticating with GitHub Actions token
|
||||||
|
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # If authenticating with SSH deploy key
|
||||||
|
run: julia --project=docs/ --code-coverage=railtoolkit docs/make.jl
|
||||||
|
- uses: julia-actions/julia-processcoverage@v1
|
||||||
|
- uses: codecov/codecov-action@v3
|
Loading…
Reference in New Issue