File tree Expand file tree Collapse file tree 2 files changed +5
-11
lines changed Expand file tree Collapse file tree 2 files changed +5
-11
lines changed Original file line number Diff line number Diff line change 9
9
# License for the specific language governing permissions and limitations under
10
10
# the License.
11
11
12
- name : Maven Release Snapshot
12
+ name : Maven Deploy
13
13
14
14
on :
15
15
workflow_call :
20
20
21
21
jobs :
22
22
23
- release-job :
23
+ maven-deploy :
24
24
runs-on : cdapio-hub-k8-runner
25
25
26
26
steps :
41
41
path : e2e
42
42
ref : ${{ inputs.ref }}
43
43
44
- - name : Get Maven Project Version
45
- working-directory : e2e
46
- id : version
47
- run : echo "::set-output name=version::`mvn help:evaluate -Dexpression=project.version -q -DforceStdout`"
48
-
49
44
- name : Import GPG key
50
45
run : |
51
46
echo "$GPG_PRIVATE_KEY" > private.key
58
53
echo "pinentry-mode loopback" >> ~/.gnupg/gpg.conf
59
54
echo "allow-loopback-pinentry" >> ~/.gnupg/gpg-agent.conf
60
55
61
- - name : Publish to Maven Snapshot Repository (OSSRH)
62
- if : ${{ endsWith(steps.version.outputs.version, 'SNAPSHOT') }}
56
+ - name : Build and Deploy
63
57
working-directory : e2e
64
58
run : mvn -B -V -DskipTests clean deploy -P release -Dgpg.passphrase=$CDAP_GPG_PASSPHRASE -Dmaven.wagon.http.retryHandler.count=5 -Dmaven.wagon.httpconnectionManager.ttlSeconds=30
65
59
env :
Original file line number Diff line number Diff line change 80
80
context : Cucumber report
81
81
sha : ${{ github.event.workflow_run.head_sha }}
82
82
83
- run-snapshot-release :
83
+ maven-deploy :
84
84
if : ${{ github.event.workflow_run.event == 'push' }}
85
85
# needs: build TODO: once build is fixed
86
- uses : ./.github/workflows/snapshot-release .yml
86
+ uses : ./.github/workflows/deploy .yml
87
87
with :
88
88
ref : ${{ github.event.workflow_run.head_sha }}
You can’t perform that action at this time.
0 commit comments