-
Notifications
You must be signed in to change notification settings - Fork 1
55 lines (52 loc) · 1.8 KB
/
deploy-media-theme.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
52
53
54
55
name: Deploy Media Theme
on:
workflow_call:
secrets:
CHECKOUT_TOKEN:
required: false
description: >
The GitHub token to authenticate checkout. Pass in a GitHub personal access token if authenticated submodules
are used.
URL:
required: true
description: The URL to use for Remote Deployment, as indicated on the Orchard Core admin.
CLIENT_NAME:
required: true
description: The "Client Name" part of the Remote Deployment client's credentials.
CLIENT_API_KEY:
required: true
description: The "Client API Key" part of the Remote Deployment client's credentials.
inputs:
theme-path:
required: false
type: string
default: .
description: Path to the theme project.
base-theme-id:
required: false
type: string
description: ID of the base theme of the theme project, if any.
clear-media-folder:
required: false
type: string
default: 'true'
description: When set to "true", will clear the Media folder of the Media Theme before deployment.
jobs:
deploy-media-theme:
name: Deploy Media Theme
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: Lombiq/GitHub-Actions/.github/actions/checkout@dev
with:
token: ${{ secrets.CHECKOUT_TOKEN }}
- name: Deploy Media Theme
uses: Lombiq/Hosting-Media-Theme/.github/actions/deploy-media-theme@dev
env:
URL: ${{ secrets.URL }}
CLIENT_NAME: ${{ secrets.CLIENT_NAME }}
CLIENT_API_KEY: ${{ secrets.CLIENT_API_KEY }}
with:
theme-path: ${{ inputs.theme-path }}
base-theme-id: ${{ inputs.base-theme-id }}
clear-media-folder: ${{ inputs.clear-media-folder }}