File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99# License for the specific language governing permissions and limitations under
1010# the License.
1111
12- name : Maven Release Snapshot
12+ name : Maven Deploy
1313
1414on :
1515 workflow_call :
2020
2121jobs :
2222
23- release-job :
23+ build-and-deploy :
2424 runs-on : cdapio-hub-k8-runner
2525
2626 steps :
4141 path : e2e
4242 ref : ${{ inputs.ref }}
4343
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-
4944 - name : Import GPG key
5045 run : |
5146 echo "$GPG_PRIVATE_KEY" > private.key
5853 echo "pinentry-mode loopback" >> ~/.gnupg/gpg.conf
5954 echo "allow-loopback-pinentry" >> ~/.gnupg/gpg-agent.conf
6055
61- - name : Publish to Maven Snapshot Repository (OSSRH)
62- if : ${{ endsWith(steps.version.outputs.version, 'SNAPSHOT') }}
56+ - name : Build and Deploy
6357 working-directory : e2e
6458 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
6559 env :
Original file line number Diff line number Diff line change 8080 context : Cucumber report
8181 sha : ${{ github.event.workflow_run.head_sha }}
8282
83- run-snapshot-release :
83+ maven-deploy :
8484 if : ${{ github.event.workflow_run.event == 'push' }}
8585# needs: build TODO: once build is fixed
86- uses : ./.github/workflows/snapshot-release .yml
86+ uses : ./.github/workflows/deploy .yml
8787 with :
8888 ref : ${{ github.event.workflow_run.head_sha }}
You can’t perform that action at this time.
0 commit comments