fix attempt

This commit is contained in:
Chris Frohoff
2022-06-25 03:56:37 +00:00
committed by GitHub
parent 320c299a93
commit 96f5b62749
+4 -3
View File
@@ -13,15 +13,16 @@ jobs:
with: with:
java-version: '8' java-version: '8'
distribution: 'adopt' distribution: 'adopt'
- name: set version - name: Set version
run: mvn versions:set -DnewVersion=${{ github.ref_name }}-SNAPSHOT run: mvn versions:set -DnewVersion=${{ github.ref_name }}-SNAPSHOT
- name: build - name: Build jar
run: mvn -B clean package -DskipTests run: mvn -B clean package -DskipTests
# - name: publish maven jar # - name: publish maven jar
# run: mvn -B deploy -DskipTests -DrepositoryId=github # run: mvn -B deploy -DskipTests -DrepositoryId=github
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: publish release - name: Publish GitHub release
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v1
with: with:
tag_name: ${{ github.ref_name }}
files: target/ysoserial-${{ github.ref_name }}-SNAPSHOT-all.jar files: target/ysoserial-${{ github.ref_name }}-SNAPSHOT-all.jar