Skip to content

Commit

Permalink
修改build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
think-flow committed Jun 24, 2024
1 parent 8ed64b3 commit 2795faf
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,14 @@ jobs:
Invoke-WebRequest -Uri https://github.com/cli/cli/releases/download/v2.0.0/gh_2.0.0_windows_amd64.msi -OutFile gh.msi
Start-Process msiexec.exe -Wait -ArgumentList '/I gh.msi /quiet'
- name: Get Tag Message
id: get_tag_message
run: |
tag_message=$(git for-each-ref --format="%(contents)" $(git rev-parse --symbolic-full-name ${{ github.ref }}))
echo "::set-output name=TAG_MESSAGE::$tag_message"
- name: Create Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release create ${{ github.ref }} l4d2addon_installer_${{ github.ref_name }}_windows.zip --title "${{ github.ref_name }}" --notes "TODO New Release."
run: |
gh release create ${{ github.ref }} l4d2addon_installer_${{ github.ref_name }}_windows.zip --title "${{ github.ref_name }}" --notes "${{ steps.get_tag_message.outputs.TAG_MESSAGE }}"

0 comments on commit 2795faf

Please sign in to comment.