-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
executable file
·54 lines (50 loc) · 1.69 KB
/
action.yml
File metadata and controls
executable file
·54 lines (50 loc) · 1.69 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
name: 'WordPress Plugin Deploy by NextgenThemes'
description: 'Deploy to the WordPress Plugin Repository'
author: 'nextgenthemes' # inspired by 10up action
branding:
icon: 'upload-cloud'
color: 'blue'
inputs:
svn_user:
description: Should be added with Github secrets
required: true
svn_pass:
description: Should be added with Github secrets
required: true
version:
description: Git tag you want to deploy, required unless you just update readme and assets
required: false
workdir:
description: Relative path to where the main plugin file is.
required: false
build_dirs:
description: Comma separated list of folders to include in distribution.
required: false
readme-and-assets-only:
description: Only update readme and assets, boolean
required: false
dry-run:
description: Exit before committing to SVN, boolean
required: false
verbose:
description: Verbose output, boolean
required: false
runs:
using: 'composite'
steps:
- run: php --version
shell: bash
- run: pwd
shell: bash
# https://github.com/actions/runner/issues/2238
- run: >
${{ github.action_path }}/wp-plugin-deploy.php
--workdir='${{ inputs.workdir }}'
--build-dirs='${{ inputs.build_dirs }}'
--version='${{ inputs.version }}'
--svn-user='${{ inputs.svn_user }}'
--svn-pass='${{ inputs.svn_pass }}'
${{ ( inputs.readme-and-assets-only && inputs.readme-and-assets-only != 'false' ) && '--readme-and-assets-only' }}
${{ ( inputs.verbose && inputs.verbose != 'false' ) && '--verbose' }}
${{ ( inputs.dry-run && inputs.dry-run != 'false' ) && '--dry-run' }}
shell: bash