Skip to content

Commit 9c81c6d

Browse files
BLD: Publish release on push to main
BUILD: Publish release on push to main
1 parent 8dceee3 commit 9c81c6d

File tree

3 files changed

+54
-1
lines changed

3 files changed

+54
-1
lines changed

.github/workflows/publish-release.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Publish release
2+
3+
on:
4+
workflow_dispatch: {}
5+
push:
6+
branches: [ "main" ]
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
publish-release:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v3
16+
17+
- name: Setup JDK 17
18+
uses: actions/setup-java@v3
19+
with:
20+
java-version: '17'
21+
distribution: 'corretto'
22+
23+
- name: Build with Gradle
24+
uses: gradle/gradle-build-action@v2
25+
with:
26+
arguments: build
27+
28+
- name: Get build info
29+
run: |
30+
BUILD_DIR=./lib/build/libs
31+
ARTIFACT_NAME=$(ls $BUILD_DIR)
32+
TAG_NAME=$(echo $ARTIFACT_NAME | grep -oP '^.*v[\d]\.[\d]')
33+
TAG_VERSION=$(echo $TAG_NAME | grep -o 'v.*')
34+
echo "BUILD_DIR=$BUILD_DIR" >> $GITHUB_ENV
35+
echo "ARTIFACT_NAME=$ARTIFACT_NAME" >> $GITHUB_ENV
36+
echo "TAG_NAME=$TAG_NAME" >> $GITHUB_ENV
37+
echo "TAG_VERSION=$TAG_VERSION" >> $GITHUB_ENV
38+
39+
- name: Publish release
40+
uses: softprops/action-gh-release@v1
41+
with:
42+
tag_name: ${{ env.TAG_NAME }}
43+
name: Juno ${{ env.TAG_VERSION }}
44+
files: ${{ env.BUILD_DIR }}/${{ env.ARTIFACT_NAME }}
45+
body_path: ./CHANGELOG.md

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
### Version
2+
3+
v1.0
4+
5+
### Changelog
6+
7+
- Perform JWT signature bypass via `None` algorithm.
8+
- Threads for concurrent attack.

lib/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ dependencies {
2121

2222
jar {
2323
archiveBaseName = 'juno'
24-
archiveVersion = '1.0'
24+
archiveVersion = 'v1.0'
2525
duplicatesStrategy(DuplicatesStrategy.EXCLUDE)
2626
from {
2727
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }

0 commit comments

Comments
 (0)