Documentation Build #21
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 Build | |
on: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
# Install jupyter-notebook | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
- name: Install jupyter | |
run: python -m pip install jupyter nbconvert nbformat matplotlib==3.8.3 | |
# Install Julia | |
- uses: julia-actions/cache@v2 | |
- uses: julia-actions/setup-julia@v2 | |
with: | |
version: 1 | |
arch: x64 | |
- uses: julia-actions/julia-buildpkg@v1 | |
# Build examples and then docs | |
- name: 'Checkout examples repo' | |
uses: actions/checkout@v4 | |
with: | |
repository: qojulia/QuantumOptics.jl-examples | |
path: './examples-repo' | |
- name: 'Build examples' | |
working-directory: ./examples-repo | |
env: | |
TARGETPATH_EXAMPLES: ../src/examples | |
run: | | |
julia -e ' | |
using Pkg | |
Pkg.activate(".") | |
Pkg.instantiate() | |
Pkg.add("PyCall") | |
Pkg.build("PyCall") | |
Pkg.add("IJulia") | |
Pkg.build("IJulia") | |
include("make.jl") | |
' | |
- name: 'Build docs' | |
run: | | |
julia -e ' | |
using Pkg | |
Pkg.activate(".") | |
Pkg.instantiate() | |
include("make.jl") | |
' | |
# Push to complete build of documentation to FTP server | |
- name: 'Deploy' | |
uses: SamKirkland/[email protected] | |
with: | |
server: ${{ secrets.ftp_server_url }} | |
username: ${{ secrets.ftp_user }} | |
password: ${{ secrets.ftp_password }} | |
local-dir: ./build/ | |