Skip to content

Update build-deploy.yml #13

Update build-deploy.yml

Update build-deploy.yml #13

Workflow file for this run

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

View workflow run for this annotation

GitHub Actions / MauiReactor

Invalid workflow file

The workflow is not valid. .github/workflows/build-deploy.yml (Line: 35, Col: 11): The identifier 'update' may not be used more than once within the same scope. .github/workflows/build-deploy.yml (Line: 42, Col: 11): The identifier 'update' may not be used more than once within the same scope.
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