-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
31 lines (29 loc) · 1.16 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
# https://docs.github.com/en/free-pro-team@latest/actions/creating-actions/metadata-syntax-for-github-actions
name: "bevry-actions/surge"
author: "Benjamin Arthur Lupton <[email protected]>"
description: "GitHub Action to publish your project to https://surge.sh"
branding:
icon: "anchor"
color: "green"
# https://docs.github.com/en/free-pro-team@latest/actions/creating-actions/metadata-syntax-for-github-actions#inputs
inputs:
surgeLogin:
description: "Your Surge email/username, get it via the `surge whoami` command."
required: true
surgeToken:
description: "The token to authorize the deployments to Surge, get via the `surge token` command."
required: true
surgeProject:
description: "The path that you want to deploy to Surge."
default: "."
required: false
# https://docs.github.com/en/free-pro-team@latest/actions/creating-actions/metadata-syntax-for-github-actions#runs-for-composite-run-steps-actions
runs:
using: "composite"
steps:
- run: $GITHUB_ACTION_PATH/action.bash
shell: bash
env:
SURGE_LOGIN: ${{inputs.surgeLogin}}
SURGE_TOKEN: ${{inputs.surgeToken}}
SURGE_PROJECT: ${{inputs.surgeProject}}