From 80074765c6fe87f40bc4b7fa5b5516a2651d03ef Mon Sep 17 00:00:00 2001 From: Igor Krivenko Date: Wed, 17 Jan 2024 15:24:06 +0100 Subject: [PATCH] CI: Test code and deploy docs in the same workflow --- .github/workflows/CI.yml | 6 +++++- .github/workflows/Documenter.yml | 22 ---------------------- 2 files changed, 5 insertions(+), 23 deletions(-) delete mode 100644 .github/workflows/Documenter.yml diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index f161946..aac19af 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -12,7 +12,7 @@ on: # Needed to allow julia-actions/cache to delete old caches permissions: actions: write - contents: read + contents: write jobs: test: @@ -37,3 +37,7 @@ jobs: - uses: julia-actions/cache@v1 - uses: julia-actions/julia-buildpkg@v1 - uses: julia-actions/julia-runtest@v1 + - uses: julia-actions/julia-docdeploy@v1 + if: matrix.version == '1.10' + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/Documenter.yml b/.github/workflows/Documenter.yml deleted file mode 100644 index 13b5c6d..0000000 --- a/.github/workflows/Documenter.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Documenter -on: - workflow_run: - workflows: ["CI"] - branches: [master, ci] - types: [completed] - -jobs: - Documenter: - permissions: - actions: write - contents: write - name: Build documentation - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: julia-actions/setup-julia@v1 - - uses: julia-actions/cache@v1 - - uses: julia-actions/julia-buildpkg@v1 - - uses: julia-actions/julia-docdeploy@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}