Skip to content

Commit e59b1f4

Browse files
committed
update workflow
1 parent fed35d8 commit e59b1f4

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/update-json.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,12 @@ jobs:
3737
uses: actions/github-script@v7
3838
with:
3939
script: |
40+
const version = '${{ inputs.tag }}'.replace(/^v/, '');
4041
const artifacts = [
4142
'litepost_aarch64.app.tar.gz',
4243
'litepost_x64.app.tar.gz',
43-
'litepost_0.1.0_amd64.AppImage',
44-
'litepost_0.1.0_x64-setup.exe'
44+
`litepost_${version}_amd64.AppImage`,
45+
`litepost_${version}_x64-setup.exe`
4546
];
4647
4748
const tag = '${{ inputs.tag }}';
@@ -174,11 +175,11 @@ jobs:
174175
},
175176
"linux-x86_64": {
176177
"signature": "'${signatures["linux-x86_64"]}'",
177-
"url": "https://github.com/LykosAI/LitePost/releases/download/${{ inputs.tag }}/litepost_${VERSION}_amd64.AppImage"
178+
"url": "https://github.com/LykosAI/LitePost/releases/download/${{ inputs.tag }}/litepost_'${VERSION}'_amd64.AppImage"
178179
},
179180
"windows-x86_64": {
180181
"signature": "'${signatures["windows-x86_64"]}'",
181-
"url": "https://github.com/LykosAI/LitePost/releases/download/${{ inputs.tag }}/litepost_${VERSION}_x64-setup.exe"
182+
"url": "https://github.com/LykosAI/LitePost/releases/download/${{ inputs.tag }}/litepost_'${VERSION}'_x64-setup.exe"
182183
}
183184
}
184185
}' > latest.json

0 commit comments

Comments
 (0)