Author SHA1 Message Date
Chris Frohoff 39432cbe6d another fix attempt 2022-06-27 06:54:17 +00:00
Chris Frohoff 048a9db46a fix attempt 2022-06-27 06:48:06 +00:00
Chris Frohoff 77e3aff82f deploy gha changes 2022-06-27 06:43:16 +00:00
Chris Frohoff cfd02f9c2e add token env var 2022-06-25 04:05:21 +00:00
Chris Frohoff 2c4d8d815c fix attempt 2022-06-25 04:01:44 +00:00
Chris Frohoff 96f5b62749 fix attempt 2022-06-25 03:56:37 +00:00
Chris Frohoff 320c299a93 try diff release gh action 2022-06-25 03:50:38 +00:00
Chris Frohoff efb3f61337 fix gh action version 2022-06-25 03:34:50 +00:00
Chris Frohoff 094b92ef28 publish release 2022-06-25 03:33:55 +00:00
Chris Frohoff 42bd6d2586 fix for version 2022-06-25 03:21:52 +00:00
Chris Frohoff 66a012184d fix jar version 2022-06-25 03:13:29 +00:00
2 changed files with 45 additions and 0 deletions
+38
View File
@@ -0,0 +1,38 @@
name: publish jar
on:
push:
tags:
- "v*.*.*"
permissions:
contents: write
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'adopt'
cache: 'maven'
- name: Set version
run: mvn versions:set -DnewVersion=${{ github.ref_name }}
- 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 }}
- run: ls -la target/ysoserial-${{ github.ref_name }}-all.jar
- name: Publish GitHub release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: target/ysoserial-${{ github.ref_name }}-all.jar
+7
View File
@@ -438,4 +438,11 @@
</profile> </profile>
</profiles> </profiles>
<distributionManagement>
<repository>
<id>github</id>
<name>GitHub Packages</name>
<url>https://maven.pkg.github.com/frohoff/ysoserial</url>
</repository>
</distributionManagement>
</project> </project>