Skip to content

Commit

Permalink
[Release]
Browse files Browse the repository at this point in the history
  • Loading branch information
Josscoder authored Mar 9, 2023
1 parent 7419351 commit 6cb77b4
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ on:
pull_request:
branches: [ "master" ]

env:
VERSION: "1.0.1"

jobs:
build:
name: Create Build
Expand All @@ -31,16 +28,21 @@ jobs:
- name: Build
run: mvn clean package

- name: Get Maven version
run: |
VERSION=$(mvn -q -Dexec.executable='echo' -Dexec.args='${project.version}' --non-recursive exec:exec)
echo "VERSION=${VERSION}" >> $GITHUB_ENV
- name: Upload Artifact
uses: ncipollo/[email protected]
with:
artifacts: ${{ github.workspace }}/target/*.jar
draft: false
name: Release v${{ env.VERSION }}
tag: v${{ env.VERSION }}
tag: ${{ env.VERSION }}
token: ${{ secrets.GITHUB_TOKEN }}
body: "The artifacts are kept up to date with the branch release."
commit: ${{ github.sha }}
allowUpdates: true
removeArtifacts: true
replacesArtifacts: true
replacesArtifacts: true

0 comments on commit 6cb77b4

Please sign in to comment.