Skip to content

Commit

Permalink
Merge pull request #2 from Noxalus/ci
Browse files Browse the repository at this point in the history
Create dotnet-desktop.yml
  • Loading branch information
Noxalus authored Jun 9, 2021
2 parents 91dacfd + 656d57c commit da8e503
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/dotnet-desktop.yml
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

0 comments on commit da8e503

Please sign in to comment.