try diff release gh action

This commit is contained in:
Chris Frohoff
2022-06-25 03:50:38 +00:00
committed by GitHub
parent efb3f61337
commit 320c299a93
+7 -6
View File
@@ -13,14 +13,15 @@ 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: Publish package - name: build
run: mvn -B clean deploy -DskipTests -DrepositoryId=github run: mvn -B clean package -DskipTests
# - name: publish maven jar
# run: mvn -B deploy -DskipTests -DrepositoryId=github
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish release - name: publish release
uses: johnwbyrd/update-release@v1.0.0 uses: softprops/action-gh-release@v1
with: with:
token: ${{ secrets.GITHUB_TOKEN }}
files: target/ysoserial-${{ github.ref_name }}-SNAPSHOT-all.jar files: target/ysoserial-${{ github.ref_name }}-SNAPSHOT-all.jar