Release: use @svenstaro/upload-release-action to make releases

This commit is contained in:
Loyalsoldier 2023-06-05 16:09:17 +08:00 committed by GitHub
parent 7d24a931c8
commit bf0dd8bb98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -180,16 +180,13 @@ jobs:
sha256sum rules.zip > rules.zip.sha256sum
- name: Release and upload assets
uses: softprops/action-gh-release@v0.1.6
uses: svenstaro/upload-release-action@v2
with:
name: ${{ env.RELEASE_NAME }}
tag_name: ${{ env.TAG_NAME }}
draft: false
prerelease: false
files: |
./publish/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
repo_token: ${{ secrets.GITHUB_TOKEN }}
release_name: ${{ env.RELEASE_NAME }}
tag: ${{ env.TAG_NAME }}
file_glob: true
file: ./publish/*
- name: Git push assets to "release" branch
run: |