forked from UKRIN-MAPS/ukat
-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (34 loc) · 1.04 KB
/
reference_manual.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Upload manual to Github Page
on:
push:
tags:
- 'v*[^rc]*'
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.9'
- name: Install Python Packages
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pdoc3
- 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 "doc" "ukat"
- name: Deploy manual to Github Page https://ukrin-maps.github.io/ukat/
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: gh-pages
FOLDER: doc/ukat
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MESSAGE: "Reference Manual ${{ steps.date.outputs.date }}"