Skip to content

Merge pull request #76 from Sienna-Platform/kd/nlr #50

Merge pull request #76 from Sienna-Platform/kd/nlr

Merge pull request #76 from Sienna-Platform/kd/nlr #50

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# Builds and deploys the two-part Sienna site: Jekyll (main pages) + SiennaDocs (Documenter.jl/MultiDocumenter).
# Docs are served at https://sienna-platform.github.io/Sienna/SiennaDocs/docs/build/
# Deploys to gh-pages branch so PR previews (jekyll-preview.yml) can coexist.
# In repo Settings > Pages, set "Deploy from a branch" with branch gh-pages.
name: Deploy Jekyll site to Pages
on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Required for pushing to gh-pages (and for PR preview workflow)
permissions:
contents: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v1
with:
version: '1.11'
- name: Install dependencies
run: julia --project=SiennaDocs/docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=joinpath(pwd(),"SiennaDocs"))); Pkg.instantiate()'
- name: Build and deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
run: julia --project=SiennaDocs/docs --color=yes SiennaDocs/docs/make.jl
- name: Setup Ruby
uses: ruby/setup-ruby@v1 # latest major version
with:
ruby-version: '3.2' # Not needed with a .ruby-version file
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
cache-version: 0 # Increment this number if you need to re-download cached gems
- name: Build with Jekyll
run: bundle exec jekyll build --baseurl "/Sienna"
env:
JEKYLL_ENV: production
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: _site
branch: gh-pages
clean: false
force: false