Add Multi-Platform 2D StartKit #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Visual Studio Project Templates | |
env: | |
TEMPLATE_VERSION: 3.8.3 | |
on: | |
push: | |
branches: [ main, develop ] | |
pull_request: | |
branches: [ main, develop ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
build-vscode: | |
runs-on: windows-latest | |
name: Build Templates | |
steps: | |
- name: Checkout current repo | |
uses: actions/checkout@v4 | |
with: | |
path: main | |
submodules: true | |
- name: Setup .NET 8.0.x & 9.0.x | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: | | |
8.0.x | |
9.0.x | |
- name: Build and Pack the Templates into a NUGET | |
id: MG-Templates | |
run: dotnet pack main/CSharp/MonoGame.Templates.CSharp.csproj -p:Configuration=Release | |
- name: Upload Template Nugets | |
uses: actions/upload-artifact@v4 | |
with: | |
name: MonoGame.Templates.CSharp.${{ ENV.TEMPLATE_VERSION }} | |
path: 'Artifacts/MonoGame.Templates.CSharp/**/*.nupkg' |