mirror of
https://github.com/frohoff/ysoserial.git
synced 2026-09-27 01:11:53 +08:00
try diff release gh action
This commit is contained in:
@@ -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
|
||||||
Reference in New Issue
Block a user