3030 description : ' Overwrite the version'
3131 type : boolean
3232 default : false
33-
33+
34+ permissions :
35+ contents : write
36+
3437jobs :
3538 # #################################
3639 # Verify Version
6063 id : tag_check
6164 run : |
6265 VERSION=${{ steps.version.outputs.VERSION }}
63- if git rev-parse " $VERSION" >/dev/null 2>&1 ; then
66+ if git show-ref --verify --quiet "refs/tags/ $VERSION"; then
6467 echo "TAG_EXISTS=true" >> $GITHUB_OUTPUT
6568 echo "Tag $VERSION already exists"
6669 else
@@ -206,12 +209,6 @@ jobs:
206209 Compress-Archive -Path "$env:RUNNER_TEMP\release\*" -DestinationPath "$env:RUNNER_TEMP\DCS-gRPC-${{ needs.verify_version.outputs.VERSION }}.zip"
207210 shell : pwsh
208211
209- - uses : actions/upload-artifact@v7
210- with :
211- name : DCS-gRPC-${{ needs.verify_version.outputs.VERSION }}.zip
212- path : ${{ runner.temp }}\DCS-gRPC-${{ needs.verify_version.outputs.VERSION }}.zip
213- retention-days : 1
214-
215212 - name : Remove existing tag if it exists
216213 if : ${{ needs.verify_version.outputs.STRATEGY == 'overwrite-version' || needs.verify_version.outputs.STRATEGY == 'update-beta' }}
217214 id : check_tag
@@ -237,12 +234,13 @@ jobs:
237234
238235 - name : Create Release
239236 id : create_release
240- uses : actions/create- release@v1
237+ uses : softprops/action-gh- release@efb35369e0ad2afab669f228072c1b0d510eae64 # v3.0.3
241238 env :
242239 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
243240 with :
241+ name : Release ${{ needs.verify_version.outputs.TAG }}
244242 tag_name : ${{ needs.verify_version.outputs.TAG }}
245- release_name : Release ${{ needs.verify_version.outputs.TAG }}
246243 body : ${{ needs.parse_changelog.outputs.body }}
244+ files : ${{ runner.temp }}\DCS-gRPC-${{ needs.verify_version.outputs.VERSION }}.zip
247245 draft : false
248246 prerelease : ${{ needs.verify_version.outputs.PRERELEASE }}
0 commit comments