From 0104c878e484e9fb0d744e206365b4f4cef6afe3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Str=C3=B6mer?= Date: Mon, 3 Jun 2024 19:22:06 +0200 Subject: [PATCH] refactor: cleanup CI config --- .github/workflows/CI.yml | 31 ------------------ .github/workflows/Documentation.yml | 32 +++++++++++++++++++ ...ewCleanup.yml => DocumentationCleanup.yml} | 2 +- 3 files changed, 33 insertions(+), 32 deletions(-) create mode 100644 .github/workflows/Documentation.yml rename .github/workflows/{DocPreviewCleanup.yml => DocumentationCleanup.yml} (97%) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 46cf465..a7ee8e6 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -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) diff --git a/.github/workflows/Documentation.yml b/.github/workflows/Documentation.yml new file mode 100644 index 0000000..ce966b6 --- /dev/null +++ b/.github/workflows/Documentation.yml @@ -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 }} diff --git a/.github/workflows/DocPreviewCleanup.yml b/.github/workflows/DocumentationCleanup.yml similarity index 97% rename from .github/workflows/DocPreviewCleanup.yml rename to .github/workflows/DocumentationCleanup.yml index 2d3c291..0794be7 100644 --- a/.github/workflows/DocPreviewCleanup.yml +++ b/.github/workflows/DocumentationCleanup.yml @@ -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: