diff --git a/.github/workflows/Documentation.yml b/.github/workflows/Documentation.yml index 512bcbd..21c9a46 100644 --- a/.github/workflows/Documentation.yml +++ b/.github/workflows/Documentation.yml @@ -51,7 +51,7 @@ jobs: - uses: julia-actions/julia-docdeploy@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} + DOCUMENTER_KEY: ${{ secrets.BREEZEDOCUMENTATION_DOCUMENTER_KEY }} - name: Save Julia depot cache on cancel or failure id: julia-cache-save if: cancelled() || failure() @@ -60,3 +60,8 @@ jobs: path: | ${{ steps.julia-cache.outputs.cache-paths }} key: ${{ steps.julia-cache.outputs.cache-key }} + - uses: actions/upload-artifact@v4 + with: + name: documentation-build + path: docs/build + retention-days: 7 diff --git a/README.md b/README.md index 0fc3350..925c396 100644 --- a/README.md +++ b/README.md @@ -5,11 +5,11 @@

- 🌪 Fast and friendly Julia software for atmosphere simulations on CPUs and GPUs. https://numericalearth.github.io/Breeze.jl/dev/ + 🌪 Fast and friendly Julia software for atmosphere simulations on CPUs and GPUs. https://numericalearth.github.io/BreezeDocumentation/dev/

- + Documentation diff --git a/docs/make.jl b/docs/make.jl index 6c49eb4..4f2b8bb 100644 --- a/docs/make.jl +++ b/docs/make.jl @@ -29,9 +29,13 @@ makedocs(sitename="Breeze", ] ) -deploydocs(; +deploydocs( + ; repo = "github.com/NumericalEarth/Breeze.jl", + deploy_repo = "github.com/NumericalEarth/BreezeDocumentation", devbranch = "main", - push_preview = true, - forcepush = true + # Only push previews if all the relevant environment variables are non-empty. This is an + # attempt to work around https://github.com/JuliaDocs/Documenter.jl/issues/2048. + push_preview = all(!isempty, (get(ENV, "GITHUB_TOKEN", ""), get(ENV, "DOCUMENTER_KEY", ""))), + forcepush = true, )