Skip to content

CI: 拆分 PDF 构建流程、更新 CI #55

CI: 拆分 PDF 构建流程、更新 CI

CI: 拆分 PDF 构建流程、更新 CI #55

Workflow file for this run

name: Documentation
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
concurrency:
# Skip intermediate builds: always.
# Cancel intermediate builds: only if it is a pull request build.
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
jobs:
HTML:
runs-on: ubuntu-latest
permissions:
actions: write # needed to allow julia-actions/cache to proactively delete old caches that it has created
contents: write
statuses: write
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: '1.8'
show-versioninfo: true
- uses: julia-actions/cache@v2
- name: Install dependencies
shell: julia --project=docs --color=yes {0}
run: |
using Pkg
Pkg.develop(PackageSpec(path=pwd()))
Pkg.instantiate()
- name: Build and deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
run: |
julia -e 'include("contrib/build_sysimg.jl"); build_sysimg(force=true)'
julia --project=doc/ doc/make.jl deploy
- name: Upload HTML
uses: actions/upload-artifact@v4
with:
name: html-site
path: doc/build/