Merge pull request #52 from ProjectTorreyPines/compat_7-19-24 #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Make Docs | |
on: | |
pull_request: | |
branches: ["master"] | |
push: | |
branches: | |
- master | |
tags: '*' | |
workflow_dispatch: | |
jobs: | |
make_docs: | |
permissions: | |
contents: write | |
statuses: write | |
name: Documentation | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: julia-actions/setup-julia@latest | |
- uses: julia-actions/cache@v1 | |
- name: Add FuseRegistry | |
run: | | |
rm -rf ~/.julia/registries/FuseRegistry | |
julia -e 'using Pkg; Pkg.Registry.add(RegistrySpec(url="https://github.com/ProjectTorreyPines/FuseRegistry.jl.git")); Pkg.Registry.add("General"); Pkg.Registry.update()' | |
- name: Replace [email protected] with https in Package.toml files | |
run: | | |
find ~/.julia/registries/FuseRegistry -type f -name 'Package.toml' -exec sed -i 's|[email protected]:|https://project-torrey-pines:${{secrets.PTP_READ_TOKEN}}@github.com/|g' {} + | |
- name: Install dependencies | |
run: | | |
julia --project=docs -e ' | |
using Pkg | |
Pkg.activate("docs") | |
Pkg.develop(PackageSpec(path=pwd())) | |
Pkg.instantiate() | |
' | |
- name: Build and deploy | |
env: | |
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} | |
run: julia --project=docs docs/make.jl |