Skip to content

Commit eef0b67

Browse files
author
Aleksandar Damjanovic
committed
Prepare release 0.2.0
- Bump version to 0.2.0 - Add release workflow (JitPack trigger + README update)
1 parent 31bd6cb commit eef0b67

File tree

2 files changed

+34
-1
lines changed

2 files changed

+34
-1
lines changed

.github/workflows/release.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Release
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
trigger-jitpack:
9+
name: Trigger JitPack Build
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Trigger JitPack build
13+
run: |
14+
echo "Triggering JitPack build for ${{ github.event.release.tag_name }}"
15+
curl -s "https://jitpack.io/com/github/ZrdJ/${{ github.event.repository.name }}/${{ github.event.release.tag_name }}/build.log" || true
16+
17+
update-readme:
18+
name: Update README Version
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v4
22+
with:
23+
ref: main
24+
- name: Update version in README
25+
run: |
26+
sed -i 's/<version>.*<\/version>/<version>${{ github.event.release.tag_name }}<\/version>/g' README.md
27+
- name: Commit and push
28+
run: |
29+
git config user.name "github-actions[bot]"
30+
git config user.email "github-actions[bot]@users.noreply.github.com"
31+
git add README.md
32+
git diff --staged --quiet || git commit -m "Update README to version ${{ github.event.release.tag_name }}"
33+
git push

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>com.github.zrdj</groupId>
88
<artifactId>java-properties</artifactId>
9-
<version>0.1.0</version>
9+
<version>0.2.0</version>
1010

1111
<properties>
1212
<maven.compiler.source>11</maven.compiler.source>

0 commit comments

Comments
 (0)