Skip to content

Commit

Permalink
switch to softprops/action-gh-release for creating the release and ad…
Browse files Browse the repository at this point in the history
…d zip archive of standalone Wave as an asset
  • Loading branch information
jamaa committed Jul 15, 2023
1 parent b64afff commit 194c2ab
Showing 1 changed file with 12 additions and 20 deletions.
32 changes: 12 additions & 20 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ jobs:
run: copy ${{ steps.teechart-license.outputs.file }} "source\My Project\TeeChart.licenses"
- name: Build Wave
run: msbuild source\Wave.vbproj -restore -property:Platform=x64 -property:Configuration=Release
- name: Create zip archive
run: Compress-Archive -Path source\bin\x64\Release\* -DestinationPath BlueM.Wave_${{ github.ref }}_x64.zip
- name: Setup VS Dev Environment
uses: seanmiddleditch/gha-setup-vsdevenv@v4
- name: DisableOutOfProc Fix # see https://stackoverflow.com/a/75641385
Expand All @@ -50,24 +52,14 @@ jobs:
Invoke-DisableOutOfProcBuild
- name: Build installer
run: devenv.com setup\Wave.Setup.vdproj /build "Release|x64"
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Copy and rename installer file
run: copy setup\release\BlueM.Wave_x64.msi BlueM.Wave_${{ github.ref }}_x64_setup.msi
shell: cmd
- name: Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: true
prerelease: false
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: setup\release\BlueM.Wave_x64.msi
#asset_name: BlueM.Wave_${{ steps.version.outputs.full }}_x64.msi
asset_name: BlueM.Wave_${{ github.ref }}_x64.msi
asset_content_type: application/x-msi
draft: true # for testing
body: [Changelog](https://github.com/bluemodel/BlueM.Wave/blob/2.4.1/source/CHANGELOG.md) # replace with actual tag
files: |
BlueM.Wave_${{ github.ref }}_x64.zip
BlueM.Wave_${{ github.ref }}_x64_setup.msi

0 comments on commit 194c2ab

Please sign in to comment.