checking CI #9
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: Documentation | |
on: | |
push: | |
branches: | |
- main | |
tags: '*' | |
pull_request: | |
jobs: | |
build: | |
permissions: | |
contents: write # Required when authenticating with `GITHUB_TOKEN`, not needed when authenticating with SSH deploy keys | |
pull-requests: read # Required when using `push_preview=true` | |
statuses: write # Optional, used to report documentation build statuses | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: julia-actions/setup-julia@v1 | |
with: | |
version: '1.9' | |
- uses: julia-actions/cache@v1 | |
- name: add CESMIX registry | |
run: | | |
julia -e ' | |
using Pkg | |
Pkg.Registry.add("General") | |
Pkg.Registry.add(RegistrySpec(url = "https://github.com/cesmix-mit/CESMIX.git")) | |
Pkg.Registry.add(RegistrySpec(url = "https://github.com/JuliaMolSim/MolSim.git")) | |
Pkg.Registry.add(RegistrySpec(url = "https://github.com/ACEsuit/ACEregistry")) | |
' | |
shell: bash | |
- name: Build and deploy | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # If authenticating with GitHub Actions token | |
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # If authenticating with SSH deploy key | |
run: | | |
julia --project=docs -e 'import Pkg; Pkg.develop(path=".")' | |
julia --project=docs/ docs/make.jl |