From f428be7079173ba0f06f36472af90cf4fd80fb25 Mon Sep 17 00:00:00 2001 From: Curtis Vogt Date: Fri, 8 Mar 2024 14:59:57 -0600 Subject: [PATCH 1/9] Identify required permissions for Documenter --- .github/workflows/Documenter.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/Documenter.yaml b/.github/workflows/Documenter.yaml index ad2b5f2..3096c3c 100644 --- a/.github/workflows/Documenter.yaml +++ b/.github/workflows/Documenter.yaml @@ -22,10 +22,12 @@ jobs: docs: name: Build # These permissions are needed to: + # - Run `deploydocs` # - Delete old caches: https://github.com/julia-actions/cache#usage permissions: - actions: write - contents: read + # actions: write + # contents: read + pull_requests: read runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -33,7 +35,7 @@ jobs: with: version: "1" show-versioninfo: true - - uses: julia-actions/cache@v1 + # - uses: julia-actions/cache@v1 - name: Install dependencies shell: julia --project=docs --color=yes {0} run: | From ebe56cd91496e08cb74f0a733965bc17d985a3ba Mon Sep 17 00:00:00 2001 From: Curtis Vogt Date: Fri, 8 Mar 2024 15:05:56 -0600 Subject: [PATCH 2/9] fixup! Identify required permissions for Documenter --- .github/workflows/Documenter.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/Documenter.yaml b/.github/workflows/Documenter.yaml index 3096c3c..d6d0492 100644 --- a/.github/workflows/Documenter.yaml +++ b/.github/workflows/Documenter.yaml @@ -27,7 +27,7 @@ jobs: permissions: # actions: write # contents: read - pull_requests: read + pull-requests: read runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 From fff24f5e2f756c9229eea6764e970f97a0ca8e8b Mon Sep 17 00:00:00 2001 From: Curtis Vogt Date: Fri, 8 Mar 2024 15:06:37 -0600 Subject: [PATCH 3/9] Add contents permission --- .github/workflows/Documenter.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/Documenter.yaml b/.github/workflows/Documenter.yaml index d6d0492..3beaa5e 100644 --- a/.github/workflows/Documenter.yaml +++ b/.github/workflows/Documenter.yaml @@ -26,7 +26,7 @@ jobs: # - Delete old caches: https://github.com/julia-actions/cache#usage permissions: # actions: write - # contents: read + contents: read pull-requests: read runs-on: ubuntu-latest steps: From ac72c7256278a4f6359910922389c7acd44fabbd Mon Sep 17 00:00:00 2001 From: Curtis Vogt Date: Fri, 8 Mar 2024 15:09:37 -0600 Subject: [PATCH 4/9] Probably need write for push --- .github/workflows/Documenter.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/Documenter.yaml b/.github/workflows/Documenter.yaml index 3beaa5e..7b9bfe9 100644 --- a/.github/workflows/Documenter.yaml +++ b/.github/workflows/Documenter.yaml @@ -26,7 +26,7 @@ jobs: # - Delete old caches: https://github.com/julia-actions/cache#usage permissions: # actions: write - contents: read + contents: write pull-requests: read runs-on: ubuntu-latest steps: From b639f9eb0fcd2552bd4adc4b51c8bc695c49c9c7 Mon Sep 17 00:00:00 2001 From: Curtis Vogt Date: Fri, 8 Mar 2024 15:20:44 -0600 Subject: [PATCH 5/9] Experiment with versions --- docs/make.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/make.jl b/docs/make.jl index 040578f..e97b867 100644 --- a/docs/make.jl +++ b/docs/make.jl @@ -15,4 +15,5 @@ makedocs(; modules=[K8sDeputy], deploydocs(; repo="github.com/beacon-biosignals/K8sDeputy.jl.git", push_preview=true, - devbranch="main") + devbranch="main", + versions=["stable" => "v^", "dev" => "main"]) From dcd04d793ffa16cbebca3bfd040fd1d26aa517a9 Mon Sep 17 00:00:00 2001 From: Curtis Vogt Date: Fri, 8 Mar 2024 15:22:52 -0600 Subject: [PATCH 6/9] Revert "Experiment with versions" This reverts commit b639f9eb0fcd2552bd4adc4b51c8bc695c49c9c7. --- docs/make.jl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/make.jl b/docs/make.jl index e97b867..040578f 100644 --- a/docs/make.jl +++ b/docs/make.jl @@ -15,5 +15,4 @@ makedocs(; modules=[K8sDeputy], deploydocs(; repo="github.com/beacon-biosignals/K8sDeputy.jl.git", push_preview=true, - devbranch="main", - versions=["stable" => "v^", "dev" => "main"]) + devbranch="main") From a91a8d3424f00d7ed2d9e5c1c6eaf2e7e0523906 Mon Sep 17 00:00:00 2001 From: Curtis Vogt Date: Fri, 8 Mar 2024 15:35:39 -0600 Subject: [PATCH 7/9] Add reference for deploydocs permissions --- .github/workflows/Documenter.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/Documenter.yaml b/.github/workflows/Documenter.yaml index 7b9bfe9..1a5b98f 100644 --- a/.github/workflows/Documenter.yaml +++ b/.github/workflows/Documenter.yaml @@ -22,7 +22,7 @@ jobs: docs: name: Build # These permissions are needed to: - # - Run `deploydocs` + # - Run `deploydocs`: https://github.com/JuliaDocs/Documenter.jl/pull/2478 # - Delete old caches: https://github.com/julia-actions/cache#usage permissions: # actions: write From 25f28fafd9fc874196f777c6ce4aa12afe3f5862 Mon Sep 17 00:00:00 2001 From: Curtis Vogt Date: Fri, 8 Mar 2024 15:35:52 -0600 Subject: [PATCH 8/9] Enable Julia caching --- .github/workflows/Documenter.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/Documenter.yaml b/.github/workflows/Documenter.yaml index 1a5b98f..4502fc0 100644 --- a/.github/workflows/Documenter.yaml +++ b/.github/workflows/Documenter.yaml @@ -25,7 +25,7 @@ jobs: # - Run `deploydocs`: https://github.com/JuliaDocs/Documenter.jl/pull/2478 # - Delete old caches: https://github.com/julia-actions/cache#usage permissions: - # actions: write + actions: write contents: write pull-requests: read runs-on: ubuntu-latest @@ -35,7 +35,7 @@ jobs: with: version: "1" show-versioninfo: true - # - uses: julia-actions/cache@v1 + - uses: julia-actions/cache@v1 - name: Install dependencies shell: julia --project=docs --color=yes {0} run: | From 1a3e9e99974e9d380f7d2173f3486164ba81da46 Mon Sep 17 00:00:00 2001 From: Curtis Vogt Date: Mon, 11 Mar 2024 09:57:36 -0500 Subject: [PATCH 9/9] Add statuses permission --- .github/workflows/Documenter.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/Documenter.yaml b/.github/workflows/Documenter.yaml index 4502fc0..9a64f34 100644 --- a/.github/workflows/Documenter.yaml +++ b/.github/workflows/Documenter.yaml @@ -28,6 +28,7 @@ jobs: actions: write contents: write pull-requests: read + statuses: write runs-on: ubuntu-latest steps: - uses: actions/checkout@v4