Tesing maui (#23) #46
Workflow file for this run
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: CI-CD | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
deploy: | |
name: 'Build, Test & Deploy' | |
env: | |
BUILD_CONFIG: 'Release' | |
SOLUTION: 'GameFramework.Release.slnf' | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
submodules: recursive | |
- name: Install .NET Core | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 8.0.x | |
- name: Setup MSBuild.exe | |
uses: microsoft/[email protected] | |
- name: Restore dependencies | |
run: nuget restore $env:SOLUTION | |
- name: Build | |
run: dotnet build $env:SOLUTION --configuration $env:BUILD_CONFIG | |
- name: Run tests | |
run: dotnet test $env:SOLUTION /p:Configuration=$env:BUILD_CONFIG --no-build --verbosity normal | |
- name: Pack Modules | |
shell: pwsh | |
run: '& .\dotnet-tools\PackPackages.ps1 -EnvFile .\.env -CustomProjectsFile .projects.conf' | |
- name: Push to NuGet Modules | |
shell: pwsh | |
run: '& .\dotnet-tools\PushPackages.ps1 -CustomProjectsFile .projects.conf -Source https://api.nuget.org/v3/index.json -ApiKey ${{secrets.NUGET_API_KEY}}' | |
- name: Push to GitHub Modules | |
shell: pwsh | |
run: '& .\dotnet-tools\PushPackages.ps1 -CustomProjectsFile .projects.conf -Source https://nuget.pkg.github.com/joshika39/index.json -ApiKey ${{secrets.GIT_API_KEY}}' |