Skip to content

Commit 62ac3cd

Browse files
committed
Renaming assets
1 parent 2203b11 commit 62ac3cd

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/cli-release.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
with:
6161
upload_url: ${{steps.create_release.outputs.upload_url}}
6262
asset_path: 'target/strm-${{env.VERSION}}.jar'
63-
asset_name: strm-${{env.VERSION}}.jar
63+
asset_name: strm.jar
6464
asset_content_type: application/java-archive
6565

6666

@@ -128,14 +128,14 @@ jobs:
128128
129129
- name: 'Build Native Image'
130130
run: |
131-
native-image -jar strm-${{env.VERSION}}.jar --no-server --no-fallback --allow-incomplete-classpath --enable-url-protocols=http --enable-url-protocols=https -H:ReflectionConfigurationResources=reflection.json -H:Class=io.streammachine.api.cli.StrmKt -H:Name=strm-${{env.VERSION}}-${{matrix.label}}
131+
native-image -jar strm-${{env.VERSION}}.jar --no-server --no-fallback --allow-incomplete-classpath --enable-url-protocols=http --enable-url-protocols=https -H:ReflectionConfigurationResources=reflection.json -H:Class=io.streammachine.api.cli.StrmKt -H:Name=strm
132132
133133
- name: 'Publish Native Image'
134134
if: success()
135135
uses: actions/upload-artifact@v2
136136
with:
137137
name: 'strm-${{env.VERSION}}-${{matrix.label}}'
138-
path: 'strm-${{env.VERSION}}-${{matrix.label}}'
138+
path: 'strm'
139139

140140
- name: 'Release Native Image Asset'
141141
if: success() && contains(github.ref, 'v')
@@ -146,7 +146,7 @@ jobs:
146146
with:
147147
upload_url: ${{env.UPLOAD_URL}}
148148
asset_name: 'strm-${{env.VERSION}}-${{matrix.label}}'
149-
asset_path: 'strm-${{env.VERSION}}-${{matrix.label}}'
149+
asset_path: 'strm'
150150
asset_content_type: application/octet-stream
151151

152152
build-windows-image:
@@ -190,7 +190,7 @@ jobs:
190190
JAVA_HOME: ./graalvm-ce-java11-20.3.0
191191
run: |
192192
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvars64.bat"
193-
./graalvm-ce-java11-20.3.0/bin/native-image -jar strm-${{env.VERSION}}.jar --no-server --no-fallback --allow-incomplete-classpath --enable-url-protocols=http --enable-url-protocols=https -H:ReflectionConfigurationResources=reflection.json -H:Class=io.streammachine.api.cli.StrmKt -H:Name=strm-${{env.VERSION}}-windows
193+
./graalvm-ce-java11-20.3.0/bin/native-image -jar strm-${{env.VERSION}}.jar --no-server --no-fallback --allow-incomplete-classpath --enable-url-protocols=http --enable-url-protocols=https -H:ReflectionConfigurationResources=reflection.json -H:Class=io.streammachine.api.cli.StrmKt -H:Name=strm
194194
195195
- name: 'Get Release URL'
196196
if: contains(github.ref, 'v')
@@ -209,7 +209,7 @@ jobs:
209209
uses: actions/upload-artifact@v2
210210
with:
211211
name: 'strm-${{env.VERSION}}-windows.exe'
212-
path: 'strm-${{env.VERSION}}-windows.exe'
212+
path: 'strm.exe'
213213

214214
- name: 'Release Windows Image Asset'
215215
if: success() && contains(github.ref, 'v')
@@ -219,6 +219,6 @@ jobs:
219219
GITHUB_TOKEN: ${{secrets.GH_TOKEN}}
220220
with:
221221
upload_url: ${{env.UPLOAD_URL}}
222-
asset_name: 'strm-${{env.VERSION}}-windows.exe'
223-
asset_path: 'strm-${{env.VERSION}}-windows.exe'
222+
asset_name: 'strm-${{env.VERSION}}-windows'
223+
asset_path: 'strm.exe'
224224
asset_content_type: application/octet-stream

0 commit comments

Comments
 (0)