Fix: use @softprops/action-gh-release to suppress warning (#1464)

This commit is contained in:
Loyalsoldier 2023-02-08 18:37:47 +08:00 committed by GitHub
parent f55369d4f3
commit ac78a0eb21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,73 +58,15 @@ jobs:
git remote add origin "https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}"
git push -f -u origin release
- name: Create a release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Release and upload assets
uses: softprops/action-gh-release@v1
with:
name: ${{ env.RELEASE_NAME }}
tag_name: ${{ env.TAG_NAME }}
release_name: ${{ env.RELEASE_NAME }}
draft: false
prerelease: false
- name: Upload dlc.dat
uses: actions/upload-release-asset@v1
files: |
./dlc.dat
./dlc.dat.*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dlc.dat
asset_name: dlc.dat
asset_content_type: application/octet-stream
- name: Upload dlc.dat sha256sum
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dlc.dat.sha256sum
asset_name: dlc.dat.sha256sum
asset_content_type: text/plain
- name: Upload dlc.dat.zip
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dlc.dat.zip
asset_name: dlc.dat.zip
asset_content_type: application/octet-stream
- name: Upload dlc.dat.zip sha256sum
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dlc.dat.zip.sha256sum
asset_name: dlc.dat.zip.sha256sum
asset_content_type: text/plain
- name: Upload dlc.dat.xz
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dlc.dat.xz
asset_name: dlc.dat.xz
asset_content_type: application/octet-stream
- name: Upload dlc.dat.xz sha256sum
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dlc.dat.xz.sha256sum
asset_name: dlc.dat.xz.sha256sum
asset_content_type: text/plain