Skip to content

Commit

Permalink
github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
natesubra committed Sep 7, 2022
1 parent 15c26f9 commit 8ebc56e
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Build

on:
push:
branches: main

jobs:
build:
runs-on: windows-latest

steps:
- uses: actions/checkout@v2

- name: Setup MSBuild
uses: microsoft/setup-msbuild@v1

- name: Navigate to Workspace
run: cd $GITHUB_WORKSPACE

- name: Build Solution
run: .\build.bat

- name: Zip
shell: bash
run: |
tag=$(git describe --tags --abbrev=0)
release_name="winapiexec-$tag"
# Pack files
7z a -tzip "${release_name}-x86.zip" "./Release/winapiexec.exe"
7z a -tzip "${release_name}-x64.zip" "./x64/Release/winapiexec.exe"
- name: Publish
uses: softprops/action-gh-release@v1
with:
files: "*.zip"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 8ebc56e

Please sign in to comment.