Skip to content

bump il2cs versions #315

bump il2cs versions

bump il2cs versions #315

Workflow file for this run

name: App Publish
on:
push:
branches:
- main
- release/**
paths:
- version.json
- .github/workflows/app-publish.yml
- Directory.Build.props
- 'src/Application/**'
- 'src/Extensions/**'
- 'src/ClientSDK/DotNet/**'
- 'src/Shared/**'
- 'src/Setup/**'
- 'src/Template/**'
- '!**/*.md'
jobs:
build:
runs-on: windows-latest
env:
IS_CI: true
Solution_Name: SDK.sln
Launcher_csproj: src\Application\Launcher\Launcher.csproj
App_csproj: src\Application\Raid.Toolkit\Raid.Toolkit.csproj
Client_csproj: src\ClientSDK\DotNet\Raid.Client.csproj
steps:
- uses: mickem/clean-after-action@v1
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
fetch-depth: 0
- name: Set branch-based environment variables
uses: iamtheyammer/[email protected]
with:
PRERELEASE: |
main:true
!default:false
PRERELEASEN: |
main:1
!default:0
# Install the .NET Core workload
- name: Install .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: |
5.0.x
6.0.x
# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild
- name: Setup MSBuild.exe
uses: microsoft/[email protected]
# Versions
- uses: dotnet/nbgv@master
id: rtk_version
with:
setAllVars: true
- uses: actions/cache@v1
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
restore-keys: |
${{ runner.os }}-nuget-
# Restore the application to populate the obj folder with RuntimeIdentifiers
- name: Restore the application
run: msbuild $env:Solution_Name /t:Restore /p:Configuration=Release
- name: Build Project
run: msbuild $env:Solution_Name -m -t:"Build;Pack" -p:Configuration=Release -p:Platform=x64 -p:PackageOutputPath="$(Get-Location)\publish\nuget"
- name: Build Launcher
run: msbuild $env:Launcher_csproj -m -t:Publish -p:TargetFramework=net5.0-windows -p:Configuration=Release -p:Platform=x64 -p:PublishDir="$(Get-Location)\publish\RTK"
- name: Build Setup
run: |
$env:Path += ";C:\Program Files (x86)\WiX Toolset v3.11\bin"
heat.exe dir $env:BuildOutputDirectory -cg RaidToolkitBinaries -out out\RaidToolkitBinaries.wxs -dr BINDIR -srd -suid -sreg -g1 -var env.BuildOutputDirectory -ag
candle.exe -nologo -o out\ out\RaidToolkitBinaries.wxs Product.wxs Registry.wxs Bundle.wxs -ext WixBalExtension
light.exe -nologo -o out\RaidToolkit.msi out\Product.wixobj out\Registry.wixobj out\RaidToolkitBinaries.wixobj -ext WixBalExtension
light.exe -nologo -o out\RaidToolkitSetup.exe out\Bundle.wixobj -ext WixBalExtension
working-directory: ./src/Setup
env:
AppVersion: ${{ steps.rtk_version.outputs.Version }}
Prerelease: ${{ env.PRERELEASEN }}
BuildOutputDirectory: ..\Application\Raid.Toolkit\bin\x64\Release\net6.0-windows10.0.19041.0\win10-x64
- name: Create release
uses: softprops/action-gh-release@v1
with:
tag_name: v${{ steps.rtk_version.outputs.Version }}
prerelease: ${{ env.PRERELEASE }}
body_path: CHANGES.md
files: |
UPGRADE_2.0.md
publish/RTK/Raid.Toolkit.exe
src/Setup/out/RaidToolkitSetup.exe
src/Template/vsix/bin/release/RTKExtensionTemplate.vsix
ThirdPartyNotice.txt
# NuGet Push
- name: Push client package to Nuget registry
run: |
dotnet nuget push publish/nuget/Raid.Common.${{ steps.rtk_version.outputs.NuGetPackageVersion }}.nupkg -k $env:NUGET_PUBLISH_TOKEN -s https://api.nuget.org/v3/index.json --skip-duplicate
dotnet nuget push publish/nuget/Raid.Client.${{ steps.rtk_version.outputs.NuGetPackageVersion }}.nupkg -k $env:NUGET_PUBLISH_TOKEN -s https://api.nuget.org/v3/index.json --skip-duplicate
dotnet nuget push publish/nuget/Raid.Model.${{ steps.rtk_version.outputs.NuGetPackageVersion }}.nupkg -k $env:NUGET_PUBLISH_TOKEN -s https://api.nuget.org/v3/index.json --skip-duplicate
dotnet nuget push publish/nuget/Raid.Toolkit.DataModel.${{ steps.rtk_version.outputs.NuGetPackageVersion }}.nupkg -k $env:NUGET_PUBLISH_TOKEN -s https://api.nuget.org/v3/index.json --skip-duplicate
dotnet nuget push publish/nuget/Raid.Toolkit.Injection.${{ steps.rtk_version.outputs.NuGetPackageVersion }}.nupkg -k $env:NUGET_PUBLISH_TOKEN -s https://api.nuget.org/v3/index.json --skip-duplicate
dotnet nuget push publish/nuget/Raid.Toolkit.Extensibility.${{ steps.rtk_version.outputs.NuGetPackageVersion }}.nupkg -k $env:NUGET_PUBLISH_TOKEN -s https://api.nuget.org/v3/index.json --skip-duplicate
dotnet nuget push publish/nuget/Raid.Toolkit.Extensibility.Host.${{ steps.rtk_version.outputs.NuGetPackageVersion }}.nupkg -k $env:NUGET_PUBLISH_TOKEN -s https://api.nuget.org/v3/index.json --skip-duplicate
dotnet nuget push publish/nuget/Raid.Toolkit.Extensibility.Tasks.${{ steps.rtk_version.outputs.NuGetPackageVersion }}.nupkg -k $env:NUGET_PUBLISH_TOKEN -s https://api.nuget.org/v3/index.json --skip-duplicate
env:
NUGET_PUBLISH_TOKEN: ${{ secrets.NUGET_PUBLISH_TOKEN }}