Initial commit #1
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: "book" | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
sphinx: | |
runs-on: "ubuntu-latest" | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: cvxgrp/.github/actions/sphinx@main | |
test: | |
runs-on: "ubuntu-latest" | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: cvxgrp/.github/actions/test@main | |
jupyter: | |
runs-on: "ubuntu-latest" | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: cvxgrp/.github/actions/jupyter@main | |
with: | |
kernel: "cvxsimulator" | |
book: | |
runs-on: "ubuntu-latest" | |
needs: [test, sphinx, jupyter] | |
permissions: | |
contents: write | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v3 | |
- name: Download Book | |
uses: actions/download-artifact@v3 | |
with: | |
name: book | |
path: .book | |
- uses: actions/download-artifact@v3 | |
with: | |
name: sphinx | |
path: .book/artifacts/sphinx | |
- uses: actions/download-artifact@v3 | |
with: | |
name: tests | |
path: .book/artifacts/tests | |
- name: GitHub Pages action | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages # The branch the action should deploy to. | |
folder: .book # The folder the action should deploy. |