Skip to content

Commit

Permalink
switch to GitHub Actions for builds
Browse files Browse the repository at this point in the history
  • Loading branch information
VitaSmith committed Nov 8, 2021
1 parent 9cc311e commit 38a8b38
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 30 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Build

on: push

env:
PROJECT_NAME: gust_tools
FRIENDLY_NAME: Gust Tools

jobs:
build:
runs-on: windows-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: recursive

- name: Set version
id: set_version
run: echo "::set-output name=version::$(git describe --tags --abbrev=0)"

- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v1

- name: Build
run: msbuild ${{ env.PROJECT_NAME }}.sln /m /p:Configuration=Release /p:Platform=x86 /p:AppVersion=${{ steps.set_version.outputs.version }}

- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: ${{ env.PROJECT_NAME }}
path: ./x86/Release/*.exe

- name: Prepare release
if: startsWith(github.ref, 'refs/tags/')
run: |
7z a ${{ env.PROJECT_NAME }}.zip .\x86\Release\*.exe *.json README.md LICENSE.txt
sha256sum ${{ env.PROJECT_NAME }}.zip
- name: Upload release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
body: ${{ env.FRIENDLY_NAME}} ${{ steps.set_version.outputs.version }}
files: ./*.zip
30 changes: 0 additions & 30 deletions appveyor.yml

This file was deleted.

0 comments on commit 38a8b38

Please sign in to comment.