-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
31 lines (31 loc) · 1017 Bytes
/
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
name: 'gopxl docs'
author: 'Mark Kremer'
description: 'A static website generator for the gopxl Markdown documentation'
inputs:
site-url:
description: "URL the site will be deployed to (https://owner.github.com/project)"
required: true
github-url:
description: "URL to the Github repository"
default: ${{ github.server_url }}/${{ github.repository }}
docs-directory:
description: 'Path to the documentation directory inside the repository'
required: false
default: 'docs'
output-directory:
description: 'Directory the generated files will be put in'
required: false
default: '_site/'
main-branch:
description: 'Branch to publish alongside tagged versions'
required: true
runs:
using: 'docker'
image: 'Dockerfile'
env:
SITE_URL: ${{ inputs.site-url }}
GITHUB_URL: ${{ inputs.github-url }}
REPOSITORY_PATH: ./
DOCS_DIR: ${{ inputs.docs-directory }}
OUTPUT_DIR: ${{ inputs.output-directory }}
MAIN_BRANCH: ${{ inputs.main-branch }}