Skip to content

Commit 62ac2ba

Browse files
committed
fix title 2
1 parent f26ff8c commit 62ac2ba

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
tags:
88
- 'hortonmachine-*' # any tag starting with v, e.g. v0.10.11
99

10+
permissions:
11+
contents: write
12+
1013
jobs:
1114
# ---- SNAPSHOT BUILD ----
1215
snapshot:
@@ -122,22 +125,23 @@ jobs:
122125
123126
124127
- name: Build release title
125-
id: rel-title
128+
id: rel
126129
run: |
127130
VERSION=$(mvn -q -DforceStdout help:evaluate -Dexpression=project.version)
128131
DATE=$(date +'%Y-%m-%d %H%M')
129132
echo "TITLE=Hortonmachine-${VERSION} - release ${DATE}" >> $GITHUB_OUTPUT
130133
131-
- name: Upload bundle artifact
132-
uses: actions/upload-artifact@v4
134+
- name: Create GitHub Release
135+
uses: softprops/action-gh-release@v2
133136
with:
134-
name: ${{ steps.rel-title.outputs.TITLE }}
135-
tag_name: ${{ github.ref_name }}
137+
tag_name: ${{ github.ref_name }} # the tag that triggered the workflow
138+
name: ${{ steps.rel.outputs.TITLE }}
136139
body: |
137140
SNAPSHOT Release ${{ steps.ver.outputs.VERSION }} of the hortonmachine libs,
138-
run-ready for Windows users (bundled Java + SpatiaLite libs).
141+
run-ready for Windows users (Java + SpatiaLite libs).
142+
139143
Linux and macOS users will know what to do.
140-
path: extras/deploy/hortonmachine_${{ steps.ver.outputs.VERSION }}.tar.gz
144+
files: extras/deploy/hortonmachine_${{ steps.ver.outputs.VERSION }}.tar.gz
141145

142146
- name: Attach bundle to GitHub Release
143147
uses: softprops/action-gh-release@v2

0 commit comments

Comments
 (0)