Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upload artifact #1300

Merged
merged 9 commits into from
Jun 26, 2023
24 changes: 17 additions & 7 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ on:
type: boolean
required: true
default: false
upload:
description: 'Upload documentation (pdfs in _static/)'
type: boolean
required: true
default: false

defaults:
run:
Expand Down Expand Up @@ -78,22 +83,27 @@ jobs:
run: |
make impatient-guide
ls -lAFgh build/impatient-guide/build/html/index.html
mkdir -p build/deploy
mv build/impatient-guide/build/html build/deploy/impatient
ls -lAFgh build/impatient-guide/build/latex/NXImpatient.pdf
mkdir -p build/html
mv build/impatient-guide/build/html build/html/impatient

- name: Build User Manual
run: |
make pdf
make html
ls -lAFgh build/manual/build/html/index.html
mkdir -p build/deploy
mv build/manual/build/html/* build/deploy
ls -lAFgh build/manual/build/latex/nexus.pdf
mkdir -p build/html
mv build/manual/build/html/* build/html

- name: Deploy both the User Manual and the Impatient Guide
if: ${{ github.event.inputs.deploy && env.python_version == env.python_deploy_version }}
uses: JamesIves/github-pages-deploy-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
folder: build/deploy
folder: build/html

- name: Upload the User Manual and the Impatient Guide
if: ${{ github.event.inputs.upload && env.python_version == env.python_deploy_version }}
uses: actions/upload-artifact@v3
with:
name: nexus-definitions-docs
path: build/html
Loading