Skip to content

Commit 8e161ab

Browse files
fhammerschmidtzth
authored andcommitted
Use a static name for the latest-master artifact
1 parent b95feba commit 8e161ab

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/ci.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ jobs:
157157

158158
- name: Package Extension pre-release version
159159
if: github.ref == 'refs/heads/master'
160-
run: npx vsce package -o rescript-vscode-${{ steps.increment_pre_release.outputs.new_version }}.vsix ${{ steps.increment_pre_release.outputs.new_version }} --no-git-tag-version
160+
run: npx vsce package -o rescript-vscode-latest-master.vsix ${{ steps.increment_pre_release.outputs.new_version }} --no-git-tag-version
161161

162162
- name: Package Extension release version
163163
if: startsWith(github.ref, 'refs/tags/')
@@ -172,8 +172,8 @@ jobs:
172172
- uses: actions/upload-artifact@v3
173173
if: github.ref == 'refs/heads/master'
174174
with:
175-
name: rescript-vscode-${{ steps.increment_pre_release.outputs.new_version }}.vsix
176-
path: rescript-vscode-${{ steps.increment_pre_release.outputs.new_version }}.vsix
175+
name: rescript-vscode-latest-master.vsix
176+
path: rescript-vscode-latest-master.vsix
177177

178178
- uses: actions/upload-artifact@v3
179179
if: startsWith(github.ref, 'refs/tags/')
@@ -189,7 +189,7 @@ jobs:
189189
automatic_release_tag: "latest-master"
190190
prerelease: true
191191
title: "Latest master"
192-
files: rescript-vscode-${{ steps.increment_pre_release.outputs.new_version }}.vsix
192+
files: rescript-vscode-latest-master.vsix
193193

194194
- name: Publish release version to GitHub
195195
if: startsWith(github.ref, 'refs/tags/')

0 commit comments

Comments
 (0)