Skip to content

Commit

Permalink
docs deployment : github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushinav authored and avik-pal committed Sep 28, 2024
1 parent f5cda87 commit 91face3
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 19 deletions.
19 changes: 0 additions & 19 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,3 @@ steps:
agents:
queue: "juliagpu"
command: "buildkite-agent pipeline upload .buildkite/testing.yml"

- label: "Documentation"
plugins:
- JuliaCI/julia#v1:
version: "1"
command: |
julia --project=docs -e '
println("--- :julia: Instantiating project")
using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()
println("+++ :julia: Building documentation")
include("docs/make.jl")'
agents:
queue: "juliagpu"
cuda: "*"
if: build.message !~ /\[skip docs\]/ && !build.pull_request.draft
timeout_in_minutes: 120

env:
# SECRET_DOCUMENTER_KEY:
20 changes: 20 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ on:
push:
branches:
- main
paths:
- "docs/**"

concurrency:
# Skip intermediate builds: always.
Expand Down Expand Up @@ -111,6 +113,24 @@ jobs:
if: steps.invs_pr.outputs.total > steps.invs_default.outputs.total
run: exit 1

docs:
if: github.ref == 'refs/heads/main'
name: Documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: julia-actions/julia-buildpkg@v1

- name: Build and deploy docs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
julia --project=docs -e '
println("--- :julia: Instantiating project")
using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()
println("+++ :julia: Building documentation")
include("docs/make.jl")'
env:
BACKEND_GROUP: "CPU"
RETESTITEMS_NWORKERS: 4
Expand Down

0 comments on commit 91face3

Please sign in to comment.