Skip to content

Commit

Permalink
Try
Browse files Browse the repository at this point in the history
  • Loading branch information
jerrytfleung committed Jun 11, 2024
1 parent 8a4707d commit 0903fe9
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: Release
on:
push:
branches: [ "main" ]
tags:
- v*
workflow_dispatch:
inputs:
version:
Expand All @@ -27,7 +28,9 @@ jobs:
java-version: '11'
distribution: 'adopt'
- name: Set Version
run: mvn versions:set -DnewVersion=${{ github.event.inputs.version }} -B
run: |
version=$(echo ${{ github.event.inputs.version }} | 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
Expand All @@ -39,7 +42,7 @@ jobs:
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# tag_name: ${{ github.event.inputs.version }}
# release_name: apm-proto ${{ github.event.inputs.version }}
# tag_name: ${{ github.ref_name }}
# release_name: apm-proto ${{ github.ref_name }}
# draft: false
# prerelease: false

0 comments on commit 0903fe9

Please sign in to comment.