Skip to content

Merge pull request #48 from QIB-Sheffield/development #81

Merge pull request #48 from QIB-Sheffield/development

Merge pull request #48 from QIB-Sheffield/development #81

Workflow file for this run

name: Upload manual to Github Page
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install Python Packages
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y%m%d')"
- name: Generate updated Reference Manual
run: |
pdoc --html --force --output-dir "docs" "."
- name: Deploy manual to Github Page https://https://qib-sheffield.github.io/mdreg/
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: gh-pages
FOLDER: docs/mdreg
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MESSAGE: "Reference Manual ${{ steps.date.outputs.date }}"