Skip to content

Added Window QPE docu #15

Added Window QPE docu

Added Window QPE docu #15

Workflow file for this run

name: Sphinx Build
# Controls when the workflow will run
on:
workflow_dispatch:
# Triggers the workflow on push or pull request events but only for the main branch
push:
paths: 'doc/**'
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
- name: Build Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install
run: pip install sphinx_rtd_theme nbsphinx sphinxcontrib.bibtex sphinxcontrib.programoutput sphinxcontrib.contentui autodoc MarkupSafe==2.0.1
- name: Build
run: |
cd doc
sphinx-build -b html . _build
#- name: Upload a Build Artifact
# uses: actions/upload-artifact@v2
# with:
# name: 'html.zip'
# path: 'doc/_build/'
- name: Checkout neasqc.github.io
uses: actions/checkout@v4
with:
ref: main
persist-credentials: true
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository.
repository: NEASQC/neasqc.github.io
path: "neasqc"
token: ${{ secrets.ACTION_TOKEN }}
- name: Create local changes
run: |
mkdir -p neasqc/TNBS #Replace test with repo name
rm -rf neasqc/TNBS/* #Replace test with repo name
cp -r doc/_build/* neasqc/TNBS #Replace test with repo name
cd neasqc
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add .
git commit -m "Update documentation from github actions" || true
- name: Push changes
uses: ad-m/github-push-action@master
with:
branch: main
directory: neasqc
repository: NEASQC/neasqc.github.io