-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
52 lines (50 loc) · 1.74 KB
/
action.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
39
40
41
42
43
44
45
46
47
48
49
50
51
# action.yaml
name: "Sphinx to Coda Action"
description: "Ideally this should take an Intersphinx Item and Upload an Index of that Documentation to Coda.io"
inputs:
uribase:
description: "The base URL of the project. Somethin like http://example.com/docs/"
required: true
intersphinx_file:
description: 'The location of the objects.inv file'
default: "build/html/objects.inv"
docID:
description: "The DocID Where the resulting documentation should go."
required: true
pageID:
description: "The Specific PageID that will get overwritten."
required: true
coda_token:
description: "Coda API Token"
required: true
template:
description: "Jinja Template that get's built"
default: "./src/template.html.jinja"
#outputs:
# num_squared:
# description: 'Square of the input'
# # need to specify the extra `value` field for `composite` actions
# value: ${{ steps.get-square.outputs.num_squared }}
runs:
using: 'composite'
steps:
- uses: getsentry/[email protected]
id: venv
with:
python-version: '3.11'
cache-dependency-path: |
${{ github.action_path }}/requirements.txt
venv-dir: ${{ github.action_path }}/venv
install-cmd: pip install -r ${{ github.action_path }}/requirements.txt
- name: parse_and_upload.py
id: pau
run: source venv/bin/activate; ./src/parse_and_upload.py
shell: bash
working-directory: ${{ github.action_path }}
env:
SPHINX_BASE_URI: ${{ inputs.uribase }}
OBJECTS_FILE: ${{ github.workspace }}/${{ inputs.intersphinx_file }}
DOCID: ${{ inputs.docID }}
PAGEID: ${{ inputs.pageID }}
CODA_TOKEN: ${{ inputs.coda_token }}
TEMPLATE: ${{ inputs.template }}