Actions: Get release version from pushed tag and use Release notes file to generate releases

This commit is contained in:
Manuel Cortez 2023-12-31 00:34:05 -06:00
parent ae56f879a8
commit 6f2642914c
No known key found for this signature in database
GPG Key ID: 9E0735CA15EFE790

View File

@ -39,6 +39,6 @@ jobs:
gh_token: ${{ github.token }} gh_token: ${{ github.token }}
run: | run: |
mkdir .release-assets mkdir .release-assets
mv scripts\TWBlue_setup.exe .release-assets\TWBlue_setup_$(cat version.txt).exe mv scripts\TWBlue_setup.exe .release-assets\TWBlue_setup_${{github.ref_name}}.exe
7z a -tzip .release-assets\TWBlue_portable_$(cat version.txt).zip scripts\TWBlue64 7z a -tzip .release-assets\TWBlue_portable_${{github.ref_name}}.zip scripts\TWBlue64
gh release create release -n "New version of TWBlue." -t "Version $(cat version.txt)" .release-assets\TWBlue_setup_$(cat version.txt).exe .release-assets\TWBlue_portable_$(cat version.txt).zip gh release create release -f "release-notes.md" -t "${{github.ref_name}}" .release-assets\TWBlue_setup_${{github.ref_name}}.exe .release-assets\TWBlue_portable_${{github.ref_name}}.zip