Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NH-76572 - Removed maven release plugin #6

Merged
merged 17 commits into from
Jun 13, 2024
Prev Previous commit
Next Next commit
Updated
jerrytfleung committed Jun 11, 2024
commit 8f5f1fdff3bdfd2bc8aafaf7a827466a88ea6597
25 changes: 10 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -3,11 +3,6 @@ on:
push:
tags:
- v*
workflow_dispatch:
inputs:
version:
required: true
description: version

jobs:
build:
@@ -29,20 +24,20 @@ jobs:
distribution: 'adopt'
- name: Set Version
run: |
version=$(echo ${{ github.event.inputs.version }} | sed 's/^v//')
version=$(echo ${{ github.ref_name }} | sed 's/^v//')
mvn versions:set -DnewVersion=$version -B
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: Publish to GitHub Packages Apache Maven
run: mvn deploy
env:
GITHUB_TOKEN: ${{ github.token }} # GITHUB_TOKEN is the default env for the password
# - name: Create Release
# uses: actions/create-release@latest
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# tag_name: ${{ github.ref_name }}
# release_name: apm-proto ${{ github.ref_name }}
# draft: false
# prerelease: false
- name: Create Release
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref_name }}
release_name: apm-proto ${{ github.ref_name }}
draft: false
prerelease: false