From 96f5b62749a5835b1a96e4144146ad8cddcfb973 Mon Sep 17 00:00:00 2001 From: Chris Frohoff Date: Sat, 25 Jun 2022 03:56:37 +0000 Subject: [PATCH] fix attempt --- .github/workflows/publish.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 7aa5c5c..7158fc4 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -13,15 +13,16 @@ jobs: with: java-version: '8' distribution: 'adopt' - - name: set version + - name: Set version run: mvn versions:set -DnewVersion=${{ github.ref_name }}-SNAPSHOT - - name: build + - name: Build jar run: mvn -B clean package -DskipTests # - name: publish maven jar # run: mvn -B deploy -DskipTests -DrepositoryId=github env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: publish release + - name: Publish GitHub release uses: softprops/action-gh-release@v1 with: + tag_name: ${{ github.ref_name }} files: target/ysoserial-${{ github.ref_name }}-SNAPSHOT-all.jar \ No newline at end of file