Skip to content

Commit

Permalink
refactor: cleanup CI config
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Strömer committed Jun 3, 2024
1 parent 4c4e3a4 commit 0104c87
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 32 deletions.
31 changes: 0 additions & 31 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,34 +43,3 @@ jobs:
files: lcov.info
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false
docs:
name: Documentation
runs-on: ubuntu-latest
permissions:
actions: write # needed to allow julia-actions/cache to proactively delete old caches that it has created
contents: write
statuses: write
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: '1'
- uses: julia-actions/cache@v2
- name: Configure doc environment
shell: julia --project=docs --color=yes {0}
run: |
using Pkg
Pkg.develop(PackageSpec(path=pwd()))
Pkg.instantiate()
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-docdeploy@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
# - name: Run doctests
# shell: julia --project=docs --color=yes {0}
# run: |
# using Documenter: DocMeta, doctest
# using IESopt
# DocMeta.setdocmeta!(IESopt, :DocTestSetup, :(using IESopt); recursive=true)
# doctest(IESopt)
32 changes: 32 additions & 0 deletions .github/workflows/Documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Documentation
on:
push:
branches: [main]
tags: '*'
pull_request:
types: [opened, synchronize, reopened]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
permissions:
actions: write # needed to allow julia-actions/cache to proactively delete old caches that it has created
contents: write
statuses: write
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@latest
with:
version: '1'
- uses: julia-actions/cache@v2
- name: Configure doc environment
shell: julia --project=docs --color=yes {0}
run: |
using Pkg
Pkg.develop(PackageSpec(path=pwd()))
Pkg.instantiate()
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-docdeploy@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# See: https://documenter.juliadocs.org/stable/man/hosting/#Cleaning-up-gh-pages
# for more information on why and how to use this workflow.

name: DocPreviewCleanup
name: DocumenationCleanup

on:
pull_request:
Expand Down

0 comments on commit 0104c87

Please sign in to comment.