Skip to content

Commit 2565f46

Browse files
committed
build: Update release configuration
1 parent c0ec99f commit 2565f46

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,13 @@ jobs:
3030

3131
- name: Set release version
3232
run: |
33-
VERSION=${{ github.event.inputs.version }}
34-
sed -i -e "s/^\:project-version\:\ .*/:project-version: ${VERSION}/g" README.adoc
33+
echo "VERSION=${{ github.event.inputs.version }}" >> $GITHUB_OUTPUT
34+
echo ${{ github.event.inputs.version }} > VERSION
35+
git add VERSION
36+
sed -i -e "s/^\:project-version\:\ .*/:project-version: ${{ github.event.inputs.version }}/g" README.adoc
3537
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
3638
git config --global user.name "GitHub Action"
37-
git commit -a -m "Releasing version $VERSION"
39+
git commit -a -m "Releasing version ${{ github.event.inputs.version }}"
3840
git push origin main
3941
4042
- name: Deploy to Plugin Portal

VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0.3.0-SNAPSHOT

gradle.properties

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
#
2424

2525
group = dev.jbang
26-
version = 0.3.0-SNAPSHOT
2726
sourceCompatibility = 11
2827
targetCompatibility = 11
2928

0 commit comments

Comments
 (0)