mirror of
https://github.com/frohoff/ysoserial.git
synced 2026-09-26 17:01:53 +08:00
deploy gha changes
This commit is contained in:
@@ -1,5 +1,8 @@
|
|||||||
name: publish jar
|
name: publish jar
|
||||||
on: [push]
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- "v*.*.*"
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
|
||||||
@@ -17,7 +20,7 @@ jobs:
|
|||||||
distribution: 'adopt'
|
distribution: 'adopt'
|
||||||
cache: 'maven'
|
cache: 'maven'
|
||||||
- name: Set version
|
- name: Set version
|
||||||
run: mvn versions:set -DnewVersion=${{ github.ref_name }}-SNAPSHOT
|
run: mvn versions:set -DnewVersion=${{ github.ref_name }}
|
||||||
- name: Build jar
|
- name: Build jar
|
||||||
run: mvn -B clean package -DskipTests
|
run: mvn -B clean package -DskipTests
|
||||||
# - name: publish maven jar
|
# - name: publish maven jar
|
||||||
@@ -29,5 +32,4 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ github.ref_name }}
|
files: target/ysoserial-${{ github.ref_name }}-all.jar
|
||||||
files: target/ysoserial-${{ github.ref_name }}-SNAPSHOT-all.jar
|
|
||||||
Reference in New Issue
Block a user