From 4769cd1f8fc6cf8248d648d05c0891dcef3c2e3a Mon Sep 17 00:00:00 2001 From: Joaquim Date: Sun, 9 Nov 2025 21:18:13 -0300 Subject: [PATCH 1/2] Split docs action --- .github/workflows/documentation.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/documentation.yml diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml new file mode 100644 index 00000000..9a777104 --- /dev/null +++ b/.github/workflows/documentation.yml @@ -0,0 +1,29 @@ +name: Documentation +on: + push: + branches: [master] + tags: '*' + pull_request: + types: [opened, synchronize, reopened] +permissions: + pull-requests: read # Required when using `push_preview=true` +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: julia-actions/setup-julia@v2 + with: + version: '1' + - name: Install dependencies + shell: julia --color=yes --project=docs/ {0} + run: | + using Pkg + Pkg.develop(PackageSpec(path=pwd())) + Pkg.instantiate() + - name: Build and deploy + run: julia --project=docs --color=yes docs/make.jl + env: + DATADEPS_ALWAYS_ACCEPT: true # For MLDatasets.MNIST + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} From cda16fcc48ab645a10c268109eae51846c19280f Mon Sep 17 00:00:00 2001 From: Joaquim Date: Sun, 9 Nov 2025 21:18:46 -0300 Subject: [PATCH 2/2] Refactor CI workflow by removing documentation job Removed the documentation job from CI workflow and adjusted token usage. --- .github/workflows/ci.yml | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7a436105..f8bec27c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -42,25 +42,3 @@ jobs: with: file: lcov.info token: ${{ secrets.CODECOV_TOKEN }} - docs: - name: Documentation - runs-on: ubuntu-latest - env: - # Fix for Plots with GR backend, see https://github.com/jheinen/GR.jl/issues/422 - GKSwstype: nul - steps: - - uses: actions/checkout@v4 - - uses: julia-actions/setup-julia@v2 - with: - version: '1' - - name: Install dependencies - shell: julia --color=yes --project=docs/ {0} - run: | - using Pkg - Pkg.develop(PackageSpec(path=pwd())) - Pkg.instantiate() - - run: julia --project=docs --color=yes docs/make.jl - env: - DATADEPS_ALWAYS_ACCEPT: true # For MLDatasets.MNIST - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}