-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yaml
103 lines (85 loc) · 3.06 KB
/
action.yaml
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
name: 'docfx for GitHub Pages'
description: 'Deploy beautiful API reference to GitHub Pages with only 1 action. No unnecessary file upload and complicated `docfx` setup.'
author: '@sator-imaging'
# Ref: https://haya14busa.github.io/github-action-brandings/
branding:
icon: 'upload-cloud'
color: 'yellow'
inputs:
# required options
app_name:
description: |
Text shown next to header logo.
Default 'docfx-pages'
default: 'docfx-pages'
required: true
site_title:
description: |
Website title used as suffix for HTML pages. ex) "HTML Page Title | <site title>"
Default 'docfx for GitHub Pages'
default: 'docfx for GitHub Pages'
required: true
site_footer:
description: |
Footer text for generated pages. HTML accepted.
Default '© 2023 Sator Imaging'
default: '© 2023 Sator Imaging'
required: true
# optional
define_symbols:
description: |
Define additional preprocessor symbols. (separate symbols by ';')
Default ''
default: ''
class_members:
description: |
Generate all-in-one class api document or separate each member into pages.
Accepts one of: 'separatePages' | 'samePage'
Default 'separatePages'
default: 'separatePages'
site_logo:
description: |
Website logo file path. Accepts full-qualified URI or relative path to '.docfx' folder.
Default 'images/wikimedia-commons/logo-csharp-recolor.svg'
default: 'images/wikimedia-commons/logo-csharp-recolor.svg'
site_favicon:
description: |
Favicon file path. Accepts full-qualified URI or relative path to '.docfx' folder.
Default 'images/wikimedia-commons/logo-csharp-recolor.svg'
default: 'images/wikimedia-commons/logo-csharp-recolor.svg'
google_analytics:
description: |
Google Analytics ID. Leave empty to disable this feature.
Default ''
default: ''
# customize main.js/css, see docfx reference for detail
# https://dotnet.github.io/docfx/docs/template.html?tabs=modern#custom-template
# note that these are added after builtin settings
main_js:
description: |
Default ''
default: ''
main_css:
description: |
Default ''
default: ''
outputs:
page_url:
description: 'URL to deployed GitHub Pages'
value: ${{ steps.deployment.outputs.page_url }}
runs:
using: "composite"
steps:
- name: DEBUG
shell: bash
run: |
echo "github.ref: ${{ github.ref }}"
echo "github.action_ref: ${{ github.action_ref }}"
echo "github.workflow_ref: ${{ github.workflow_ref }}"
echo "github.base_ref: ${{ github.base_ref }}"
echo "github.head_ref: ${{ github.head_ref }}"
echo "GITHUB_REF : ${GITHUB_REF}"
echo "GITHUB_ACTION_REPOSITORY: ${GITHUB_ACTION_REPOSITORY}"
echo "GITHUB_WORKSPACE: ${GITHUB_WORKSPACE}"
echo "GITHUB_ACTION_PATH: ${GITHUB_ACTION_PATH}"
echo "GITHUB_ACTION_PATH##*/: ${GITHUB_ACTION_PATH##*/}"