-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from Noxalus/ci
Create dotnet-desktop.yml
- Loading branch information
Showing
1 changed file
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Win32Sample GitHub Release | ||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
jobs: | ||
create_release: | ||
name: Create GitHub Release | ||
runs-on: windows-2019 | ||
steps: | ||
- name: Install 7Zip PowerShell Module | ||
shell: powershell | ||
run: Install-Module 7Zip4PowerShell -Force -Verbose | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Build Binary | ||
shell: cmd | ||
run: call .\Build.cmd | ||
- name: Build Artifact | ||
shell: cmd | ||
run: call .\ArtifactBuild.cmd | ||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@latest | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: Release ${{ github.ref }} | ||
body: | | ||
Automated Release by GitHub Action CI | ||
draft: false | ||
prerelease: true | ||
- name: Upload Release Asset (x64) | ||
id: upload-release-asset-x64 | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ./SampleX64.ZIP | ||
asset_name: SampleX64.ZIP | ||
asset_content_type: application/zip | ||
- name: Upload Release Asset (x86) | ||
id: upload-release-asset-x86 | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ./SampleX86.ZIP | ||
asset_name: SampleX86.ZIP | ||
asset_content_type: application/zip |