Skip to content

Commit

Permalink
Update github workflow
Browse files Browse the repository at this point in the history
原先的release action不能寫內容,換一個較多人用的
  • Loading branch information
jim60105 committed Feb 22, 2022
1 parent 2915fcb commit 69afdf0
Showing 1 changed file with 7 additions and 17 deletions.
24 changes: 7 additions & 17 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,21 +57,11 @@ jobs:
with:
name: artifact

- name: Release single file
uses: fnkr/github-action-ghr@v1
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
env:
GHR_BODY_FILE: NOTICE
GHR_DELETE: false
GHR_REPLACE: true
GHR_PATH: YoutubeSegmentDownloader.exe
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Release setup file
uses: fnkr/github-action-ghr@v1
if: startsWith(github.ref, 'refs/tags/')
env:
GHR_DELETE: false
GHR_REPLACE: true
GHR_PATH: setup.exe
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
body_path: NOTICE
files: |
YoutubeSegmentDownloader.exe
setup.exe

0 comments on commit 69afdf0

Please sign in to comment.