Use softprops/action-gh-release@v2 action instead of deprecated actions/create-release & actions/upload-release-asset
parent
186b3b19a8
commit
d4a1c15926
|
@ -171,24 +171,15 @@ jobs:
|
||||||
if: env.VERSIONTAG_THIS != ''
|
if: env.VERSIONTAG_THIS != ''
|
||||||
run: docker push --all-tags mlocati/php-extension-installer
|
run: docker push --all-tags mlocati/php-extension-installer
|
||||||
- name: Create release
|
- name: Create release
|
||||||
id: create_release
|
|
||||||
if: env.VERSIONTAG_THIS != ''
|
if: env.VERSIONTAG_THIS != ''
|
||||||
uses: actions/create-release@v1
|
uses: softprops/action-gh-release@v2
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ env.VERSIONTAG_THIS }}
|
tag_name: ${{ env.VERSIONTAG_THIS }}
|
||||||
release_name: ${{ env.RELEASE_NAME }}
|
name: ${{ env.RELEASE_NAME }}
|
||||||
body: ${{ env.RELEASE_NOTES }}
|
body: ${{ env.RELEASE_NOTES }}
|
||||||
draft: false
|
draft: false
|
||||||
prerelease: false
|
prerelease: false
|
||||||
- name: Upload release asset
|
generate_release_notes: false
|
||||||
if: env.VERSIONTAG_THIS != ''
|
fail_on_unmatched_files: true
|
||||||
uses: actions/upload-release-asset@v1
|
files: |
|
||||||
env:
|
install-php-extensions
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
|
||||||
asset_path: ./install-php-extensions
|
|
||||||
asset_name: install-php-extensions
|
|
||||||
asset_content_type: application/octet-stream
|
|
||||||
|
|
Loading…
Reference in New Issue