wabbajack/.github/workflows/release.yml
2022-08-16 15:08:31 -06:00

26 lines
1.2 KiB
YAML

name: Create Release (Windows)
on:
workflow_dispatch:
jobs:
build:
runs-on: release-builder
steps:
- uses: actions/checkout@v2
- name: Extract Version
run: echo "VERSION=$(python scripts/version_extract.py)" >> $GITHUB_ENV
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Restore dependencies ${{ env.VERSION }}
run: dotnet restore
- name: Build App ${{ env.VERSION }}
run: dotnet publish Wabbajack.App.Wpf\Wabbajack.App.Wpf.csproj --runtime win10-x64 --configuration Release /p:Platform=x64 -o ~/app --self-contained
- name: Build CLI ${{ env.VERSION }}
run: dotnet publish Wabbajack.CLI\Wabbajack.CLI.csproj --runtime win10-x64 --configuration Release /p:Platform=x64 -o ~/cli --self-contained
- name: Build Launcher ${{ env.VERSION }}
run: dotnet publish Wabbajack.Launcher\Wabbajack.Launcher.csproj --runtime win10-x64 --configuration Release /p:Platform=x64 -o ~/launcher /p:PublishedTrimmed=true /p:PublishReadyToRun=true /p:PublishSingleFile=true /p:IncludeNativeLibrariesForSelfExtract=true --self-contained