From 97e6062043b5758054e8fb6282cb644a38fb5f6c Mon Sep 17 00:00:00 2001 From: Will Pazner Date: Sun, 8 Nov 2020 16:04:31 -0800 Subject: [PATCH] actions - Julia documentation --- .github/workflows/julia-documentation.yml | 25 +++++++++++++++++++++++ julia/LibCEED.jl/docs/make.jl | 1 + 2 files changed, 26 insertions(+) create mode 100644 .github/workflows/julia-documentation.yml diff --git a/.github/workflows/julia-documentation.yml b/.github/workflows/julia-documentation.yml new file mode 100644 index 0000000000..c8e535c10f --- /dev/null +++ b/.github/workflows/julia-documentation.yml @@ -0,0 +1,25 @@ +name: Julia Documentation + +on: + push: + branches: + - main + tags: '*' + pull_request: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: julia-actions/setup-julia@latest + - name: Install dependencies + run: | + cd julia/LibCEED.jl + julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate(); Pkg.build()' + - name: Build and deploy + env: + DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # For authentication with SSH deploy key + run: | + cd julia/LibCEED.jl + julia --project=docs/ docs/make.jl diff --git a/julia/LibCEED.jl/docs/make.jl b/julia/LibCEED.jl/docs/make.jl index 034b72b04f..166886f291 100644 --- a/julia/LibCEED.jl/docs/make.jl +++ b/julia/LibCEED.jl/docs/make.jl @@ -25,4 +25,5 @@ makedocs(sitename="LibCEED.jl Docs", deploydocs( repo="github.com/CEED/libCEED-julia-docs.git", devbranch="main", + push_preview=true, )