-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathaction.yaml
More file actions
71 lines (70 loc) · 2.63 KB
/
Copy pathaction.yaml
File metadata and controls
71 lines (70 loc) · 2.63 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
60
61
62
63
64
65
66
67
68
69
70
71
name: 'Central Publish'
description: 'Publishes artifacts on Sonatype Central Portal'
inputs:
base-uri:
description: 'Base URI of the Central Portal'
default: 'https://central.sonatype.com'
required: false
maven-central-base-uri:
description: 'Base URI of Maven Central'
default: 'https://repo.maven.apache.org/maven2/'
required: false
token-name:
description: 'Token name for authentication with the Central Portal'
required: true
token:
description: 'Token for authentication with the Central Portal'
required: true
publishing-type:
description: 'Publishing type of the artifacts'
required: false
default: 'automatic'
dir:
description: 'Directory containing the artifacts to deploy'
required: false
default: 'nexus'
drop-on-failure:
description: 'Whether the deployment should automatically be dropped on failure'
required: false
default: 'true'
ignore-already-exists-error:
description: 'Whether the "Deployment already exists" error should be ignored'
required: false
default: 'false'
timeout:
description: 'Maximum duration to wait for a deployment to complete'
required: false
default: '1h'
sleep-between-retries:
description: 'Duration between deployment status retries'
required: false
default: '1m'
await-artifact:
description: 'Artifact in Maven coordinates to wait for'
required: false
default: ''
fail-on-existing-checksums:
description: 'Whether to fail on existing checksums'
required: false
default: 'true'
deployment-name:
description: 'Name of the deployment'
required: false
default: ''
runs:
using: 'docker'
image: 'Dockerfile'
args:
- --centralportal.base-uri=${{ inputs.base-uri }}
- --centralportal.maven-central-base-uri=${{ inputs.maven-central-base-uri }}
- --centralportal.directory=${{ inputs.dir }}
- --centralportal.token.name=${{ inputs.token-name }}
- --centralportal.token.value=${{ inputs.token }}
- --centralportal.deployment.publishing-type=${{ inputs.publishing-type }}
- --centralportal.deployment.drop-on-failure=${{ inputs.drop-on-failure }}
- --centralportal.deployment.ignore-already-exists-error=${{ inputs.ignore-already-exists-error }}
- --centralportal.deployment.timeout=${{ inputs.timeout }}
- --centralportal.deployment.sleep-between-retries=${{ inputs.sleep-between-retries }}
- --centralportal.deployment.await-artifact=${{ inputs.await-artifact }}
- --centralportal.checksum.fail-on-existing-checksums=${{ inputs.fail-on-existing-checksums }}
- --centralportal.deployment.name=${{ inputs.deployment-name }}