Skip to content

Commit 55361d1

Browse files
authored
delete existing assests before uploading (#15518)
* delete existing assests before uploading * fix typo * remove name * proper syntax?
1 parent 09b6001 commit 55361d1

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/nightly-release.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,15 @@ jobs:
2828
zip ${{ github.event.repository.name }}/${{ github.event.repository.name }}-$OMVERSION-nightly.zip ${{ github.event.repository.name }}-$OMVERSION -r -x '*/.git/*'
2929
rm -f ${{ github.event.repository.name }}-$OMVERSION
3030
31-
- uses: pyTooling/Actions/releaser@r0
31+
- name: Delete old release assets
32+
uses: mknejp/delete-release-assets@v1
33+
with:
34+
token: ${{ secrets.GITHUB_TOKEN }}
35+
tag: nightly
36+
assets: '*nightly.zip'
37+
38+
- name: Upload the new assets
39+
uses: pyTooling/Actions/releaser@r0
3240
with:
3341
token: ${{ secrets.GITHUB_TOKEN }}
3442
tag: nightly

0 commit comments

Comments
 (0)