-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
46 lines (40 loc) · 1.2 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: "deploy TYPO3 extension"
description: "deploys TYPO3 extension via scp (appleboy/scp-action)"
inputs:
host:
description: "the host domain to deploy the extension"
required: true
target_path:
description: "the path on the host to deploy the extension [TYPO3]/ext/[extension_key]"
required: true
user_name:
description: "name of the user to use at the login"
required: true
user_password:
description: "password of the user to use at the login"
required: true
runs:
using: "composite"
steps:
- name: 'Checkout: actions'
uses: actions/checkout@v3
- name: 'Checkout: local'
uses: actions/checkout@v3
with:
repository: peni4142/typo3-scp-deployment
path: 'typo3-scp-deployment-template'
ref: 'main'
- name: create deployment
shell: bash
run: node ./typo3-scp-deployment-template/complex-copy.js
- name: copy extension to production server
uses: appleboy/scp-action@master
with:
host: ${{ inputs.host }}
username: ${{ inputs.user_name }}
password: ${{ inputs.user_password }}
port: 22
source: "deployment/*"
target: ${{ inputs.target_path }}
strip_components: 1
overwrite: true