Skip to content

Commit

Permalink
update docs CI
Browse files Browse the repository at this point in the history
  • Loading branch information
orso82 committed Jul 15, 2024
1 parent e02dc2c commit ad84a43
Showing 1 changed file with 23 additions and 5 deletions.
28 changes: 23 additions & 5 deletions .github/workflows/make_docs.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,47 @@
name: Make Docs

on:
pull_request:
branches: ["master"]
push:
branches:
- master
- 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: |
julia --project=docs/ -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.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
julia --project=docs -e '
using Pkg
Pkg.activate("docs")
Pkg.develop(PackageSpec(path=pwd()))
Pkg.instantiate()
'
- name: Build and deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
run: julia --project=docs/ docs/make.jl
run: julia --project=docs docs/make.jl

0 comments on commit ad84a43

Please sign in to comment.