Skip to content

Commit

Permalink
Divide the documentation setting from the CI setting.
Browse files Browse the repository at this point in the history
  • Loading branch information
Paalon committed Jun 7, 2024
1 parent b6f736a commit f84387a
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 10 deletions.
10 changes: 0 additions & 10 deletions .github/workflows/ci.yml → .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,3 @@ jobs:
- uses: codecov/codecov-action@v2
with:
files: lcov.info
docs:
name: Documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: julia-actions/julia-buildpkg@latest
- uses: julia-actions/julia-docdeploy@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
26 changes: 26 additions & 0 deletions .github/workflows/Documentation.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Documentation
on:
push:
branches:
- master
tags: '*'
pull_request:
jobs:
build:
permission:
contents: write
pull-requests: read
statuses: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@4
- uses: julia-actions/setup-julia@v2
with:
version: '1.6'
- uses: julia-actions/cache@v1
- 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 }}
run: julia --project=docs/ docs/make.jl

0 comments on commit f84387a

Please sign in to comment.