Create release_publish.yml

This commit is contained in:
Rami Pasanen 2020-09-12 17:02:55 +03:00 committed by GitHub
parent d23f0cd6f7
commit 110329b806
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

29
.github/workflows/release_publish.yml vendored Normal file
View File

@ -0,0 +1,29 @@
name: Publish compiled binaries in release
on:
release:
types: [published]
jobs:
release:
name: Release
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v1.0.1
- name: Restore packages
run: msbuild CnCTDRAMapEditor -t:restore -p:Configuration=Release
- name: Build with MSBuild
run: msbuild CnCTDRAMapEditor -p:Configuration=Release
- name: Pack compiled binaries
run: 7z a -tzip CnCTDRAMapEditor.zip "D:\a\CnCTDRAMapEditor\CnCTDRAMapEditor\CnCTDRAMapEditor\bin\Release\*.*"
- name: Upload compiled binaries
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: 'CnCTDRAMapEditor.zip'
asset_name: CnCTDRAMapEditor.zip
asset_content_type: application/zip