-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
60 lines (59 loc) · 2.3 KB
/
action.yml
File metadata and controls
60 lines (59 loc) · 2.3 KB
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
name: "HubSpot Project Action"
author: "HubSpot"
description: "Validate, upload, and deploy a HubSpot project"
branding:
icon: "upload-cloud"
color: "orange"
inputs:
project_dir:
description: "The path to the directory where your hsproject.json file is located"
required: true
default: ./
type: string
personal_access_key:
description: "[SECRET] Personal Access Key generated in HubSpot that grants access to the CLI. If not provided, will use DEFAULT_PERSONAL_ACCESS_KEY from environment."
required: false
type: string
account_id:
description: "HubSpot account ID associated with the personal-access-key. If not provided, will use DEFAULT_ACCOUNT_ID from environment."
required: false
type: number
cli_version:
description: "Version of the HubSpot CLI to install. If not provided, will use DEFAULT_CLI_VERSION from environment. If neither are found, defaults to `latest`."
required: false
type: string
profile:
description: "Profile to use for the HubSpot CLI. If not provided, will use DEFAULT_PROFILE from environment."
required: false
type: string
outputs:
build_id:
description: "The build ID of the created HubSpot project build"
value: ${{ steps.upload-project-step.outputs.build_id }}
deploy_id:
description: "The deploy ID if auto-deploy is enabled"
value: ${{ steps.upload-project-step.outputs.deploy_id }}
runs:
using: "composite"
steps:
- name: Install HubSpot CLI
uses: HubSpot/hubspot-project-actions/install-hubspot-cli@v1.1.0
with:
cli_version: ${{ inputs.cli_version }}
- name: Validate HubSpot Project
uses: HubSpot/hubspot-project-actions/project-validate@v1.1.0
with:
project_dir: ${{ inputs.project_dir }}
personal_access_key: ${{ inputs.personal_access_key }}
account_id: ${{ inputs.account_id }}
cli_version: ${{ inputs.cli_version }}
profile: ${{ inputs.profile }}
- name: Upload HubSpot Project
id: upload-project-step
uses: HubSpot/hubspot-project-actions/project-upload@v1.1.0
with:
project_dir: ${{ inputs.project_dir }}
personal_access_key: ${{ inputs.personal_access_key }}
account_id: ${{ inputs.account_id }}
cli_version: ${{ inputs.cli_version }}
profile: ${{ inputs.profile }}