Skip to content

Commit a7914ca

Browse files
committed
Update release action
1 parent f83e845 commit a7914ca

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/presto-release-publish.yml

+7-3
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,13 @@ jobs:
7979
run: |
8080
git cherry-pick ${{ env.RELEASE_NOTES_COMMIT }}
8181
82+
- name: Delete existing release tag
83+
run: |
84+
git push origin :${{ env.RELEASE_TAG }} || true
85+
git tag -d ${{ env.RELEASE_TAG }} || true
86+
8287
- name: Create new release tag
8388
run: |
84-
echo "Please delete tag ${{ env.RELEASE_TAG }} manually if it exists"
8589
git tag -a ${{ env.RELEASE_TAG }} -m "release ${{ env.RELEASE_TAG }}"
8690
git push origin ${{ env.RELEASE_BRANCH }} --tags
8791
@@ -178,7 +182,7 @@ jobs:
178182
env:
179183
GPG_TTY: $(tty)
180184
GPG_KEY_FILE: /tmp/gpg-key.txt
181-
185+
182186
- name: Release Maven Artifacts
183187
if: ${{ github.event.inputs.publish_maven == 'true' }}
184188
run: |
@@ -267,7 +271,7 @@ jobs:
267271
publish-native-image:
268272
if: ${{ github.event.inputs.publish_native_docker == 'true' }}
269273
runs-on: ubuntu-latest
270-
permissions:
274+
permissions:
271275
contents: read
272276
packages: write
273277
attestations: write

0 commit comments

Comments
 (0)