Skip to content

Github Actions

Github Actions #1

Workflow file for this run

name: Release
on:
push:
tags:
- "*"
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild
- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v2
- name: Restore NuGet Packages
run: msbuild Andraste.UILauncher.csproj /t:Restore
- name: Build project
run: msbuild Andraste.UILauncher.csproj /p:Configuration=Release /p:Platform=x86 /t:Build
- name: Zip Release Bundle
uses: vimtor/[email protected]
with:
files: bin\Release\net48\
dest: Andraste-UILauncher-${{ github.ref }}.zip
- name: Create Release
uses: softprops/action-gh-release@v1
with:
files: Andraste-UILauncher-${{ github.ref }}.zip
tag_name: ${{ github.ref }}
name: Release ${{ github.ref }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}