forked from jbuncle/composer-nexus-upload
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yml
51 lines (51 loc) · 1.75 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
47
48
49
50
51
# action.yml
name: 'Publish Composer package'
description: 'Publishes the composer package in the current directory to a (Nexus) repository.'
inputs:
repository:
description: 'URL of the Nexus repository'
required: true
username:
description: 'Username'
required: true
password:
description: 'Password'
required: true
version:
description: 'Version to publish the Composer package as'
required: false
default: ''
package-path:
description: 'Path to package to upload, relative to repository root.'
required: false
default: ''
github-token:
description: The GitHub token used to create an authenticated client
default: ${{ github.token }}
required: false
github-event-name:
description: Github event name. You do not need to set this (just required because github. access isn't possible in the steps.)
default: ${{ github.event_name }}
required: false
github-ref-type:
description: Github ref type. You do not need to set this (just required because github. access isn't possible in the steps.)
default: ${{ github.ref_type }}
required: false
github-ref-name:
description: Github ref name. You do not need to set this (just required because github. access isn't possible in the steps.)
default: ${{ github.ref_name }}
required: false
runs:
using: 'docker'
image: 'Dockerfile'
args:
- /usr/bin/nexus-upload
- --repository=${{ inputs.repository }}
- --username=${{ inputs.username }}
- --password=${{ inputs.password }}
env:
PACKAGE_PATH: ${{ inputs.package-path }}
VERSION: ${{ inputs.version }}
GITHUB_EVENT_NAME: ${{ inputs.github-event-name }}
GITHUB_REF_TYPE: ${{ inputs.github-ref-type }}
GITHUB_REF_NAME: ${{ inputs.github-ref-name }}