Skip to content

Commit 23e8b0c

Browse files
committed
build: Update release configuration
1 parent 044b8fc commit 23e8b0c

File tree

3 files changed

+22
-23
lines changed

3 files changed

+22
-23
lines changed

.github/workflows/early-access.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ on:
2525
env:
2626
JAVA_VERSION: '11'
2727
JAVA_DISTRO: 'zulu'
28-
28+
2929
jobs:
3030
earlyaccess:
3131
name: EarlyAccess

.github/workflows/release.yml

Lines changed: 14 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -30,45 +30,37 @@ env:
3030
JAVA_DISTRO: 'zulu'
3131

3232
jobs:
33-
precheck:
34-
name: Precheck
35-
runs-on: ubuntu-latest
36-
outputs:
37-
VERSION: ${{ steps.vars.outputs.VERSION }}
38-
steps:
39-
- name: Checkout
40-
uses: actions/checkout@v4
41-
42-
- name: Cancel previous run
43-
uses: styfle/[email protected]
44-
with:
45-
access_token: ${{ secrets.GITHUB_TOKEN }}
46-
4733
release:
4834
name: Release
49-
needs: [precheck]
5035
runs-on: ubuntu-latest
5136
steps:
5237
- uses: actions/checkout@v4
5338
with:
5439
fetch-depth: 0
5540

41+
- name: Cancel previous run
42+
uses: styfle/[email protected]
43+
with:
44+
access_token: ${{ secrets.GITHUB_TOKEN }}
45+
5646
- name: Set up Java
5747
uses: actions/setup-java@v4
5848
with:
5949
java-version: ${{ env.JAVA_VERSION }}
6050
distribution: ${{ env.JAVA_DISTRO }}
6151
cache: gradle
6252

63-
- name: Set release version
53+
- name: Version
54+
id: vars
55+
shell: bash
6456
run: |
65-
VERSION=${{ github.event.inputs.version }}
66-
echo $VERSION > VERSION
57+
echo "VERSION=${{ github.event.inputs.version }}" >> $GITHUB_OUTPUT
58+
echo ${{ github.event.inputs.version }} > VERSION
6759
git add VERSION
68-
sed -i -e "s/^\:project-version\:\ .*/:project-version: ${{ needs.precheck.outputs.VERSION }}/g" README.adoc
69-
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
70-
git config --global user.name "GitHub Action"
71-
git commit -a -m "Releasing version $VERSION"
60+
sed -i -e "s/^\:project-version\:\ .*/:project-version: ${{ github.event.inputs.version }}/g" README.adoc
61+
git config --global user.email "${{ secrets.COMMIT_EMAIL }}"
62+
git config --global user.name "Andres Almiray"
63+
git commit -a -m "Releasing version ${{ github.event.inputs.version }}"
7264
git push origin master
7365
7466
- name: Deploy

jreleaser.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@ project:
2626
license: Apache-2.0
2727
inceptionYear: 2006
2828
stereotype: NONE
29+
vendor: Kordamp
30+
java:
31+
groupId: org.kordamp.json
32+
version: 8
33+
tags:
34+
- 'json'
35+
- 'xml'
2936

3037
release:
3138
github:

0 commit comments

Comments
 (0)