Update build-deploy.yml #13
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: MauiReactor | ||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
jobs: | ||
build: | ||
runs-on: windows-latest # For a list of available runner types, refer to | ||
# https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on | ||
env: | ||
Solution_Name: ./src/MauiReactor.Build.sln | ||
Version: 2.0.0-beta | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Update version (MauiReactor) | ||
id: update | ||
uses: vers-one/[email protected] | ||
with: | ||
file: "./src/MauiReactor/MauiReactor.csproj" | ||
version: $env:Version | ||
- name: Update version (MauiReactor.Blazor) | ||
id: update | ||
Check failure on line 35 in .github/workflows/build-deploy.yml GitHub Actions / MauiReactorInvalid workflow file
|
||
uses: vers-one/[email protected] | ||
with: | ||
file: "./src/MauiReactor.Blazor/MauiReactor.Blazor.csproj" | ||
version: $env:Version | ||
- name: Update version (MauiReactor.Canvas) | ||
id: update | ||
uses: vers-one/[email protected] | ||
with: | ||
file: "./src/MauiReactor.Canvas/MauiReactor.Canvas.csproj" | ||
version: $env:Version | ||
- name: Update version (MauiReactor.Maps) | ||
id: update | ||
uses: vers-one/[email protected] | ||
with: | ||
file: "./src/MauiReactor.Maps/MauiReactor.Maps.csproj" | ||
version: $env:Version | ||
- name: Update version (MauiReactor.ScaffoldGenerator) | ||
id: update | ||
uses: vers-one/[email protected] | ||
with: | ||
file: "./src/MauiReactor.ScaffoldGenerator/MauiReactor.ScaffoldGenerator.csproj" | ||
version: $env:Version | ||
- name: Update version (MauiReactor.TemplatePack) | ||
id: update | ||
uses: vers-one/[email protected] | ||
with: | ||
file: "./src/MauiReactor.TemplatePack/MauiReactor.TemplatePack.csproj" | ||
version: $env:Version | ||
- name: Update version (MauiReactor.HotReloadConsole) | ||
id: update | ||
uses: vers-one/[email protected] | ||
with: | ||
file: "./src/MauiReactor.HotReloadConsole/MauiReactor.HotReloadConsole.csproj" | ||
version: $env:Version | ||
# Install the .NET Core workload | ||
- name: Install .NET Core | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: 8.0.x | ||
- name: Install MAUI workload | ||
run: dotnet workload install maui | ||
# Restore the application to populate the obj folder with RuntimeIdentifiers | ||
- name: Build the packages | ||
run: dotnet build $env:Solution_Name -c Release | ||