Skip to content

Commit e591d16

Browse files
Merge pull request #142 from cdapio/update-release-workflow
update maven deploy workflow
2 parents cde7750 + f99a52a commit e591d16

File tree

2 files changed

+5
-11
lines changed

2 files changed

+5
-11
lines changed

.github/workflows/snapshot-release.yml renamed to .github/workflows/deploy.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
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

1414
on:
1515
workflow_call:
@@ -20,7 +20,7 @@ on:
2020

2121
jobs:
2222

23-
release-job:
23+
maven-deploy:
2424
runs-on: cdapio-hub-k8-runner
2525

2626
steps:
@@ -41,11 +41,6 @@ jobs:
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
@@ -58,8 +53,7 @@ jobs:
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:

.github/workflows/e2e.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ jobs:
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 }}

0 commit comments

Comments
 (0)