Skip to content

Pack MvvmGen

Pack MvvmGen #31

Workflow file for this run

name: Pack MvvmGen
on: workflow_dispatch
jobs:
pack-mvvmgen:
runs-on: ubuntu-latest
defaults:
run:
working-directory: src
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal
- name: Create release build of MvvmGen.SourceGenerators
working-directory: src/MvvmGen.SourceGenerators
run: dotnet build -c Release
- name: Create release build of MvvmGen
working-directory: src/MvvmGen
run: dotnet build -c Release
- name: Pack MvvmGen as NuGet
run: dotnet pack -v normal -c Release --no-restore
working-directory: src/MvvmGen
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: nupkg
path: src/MvvmGen/bin/Release/*.nupkg
pack-mvvmgen-pure-code-generation:
runs-on: ubuntu-latest
defaults:
run:
working-directory: src
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore -c MvvmGen_PureCodeGeneration
- name: Test
run: dotnet test --no-build --verbosity normal -c MvvmGen_PureCodeGeneration
- name: Create build of MvvmGen.SourceGenerators with PureCodeGeneration flag
working-directory: src/MvvmGen.SourceGenerators
run: dotnet build -c MvvmGen_PureCodeGeneration
- name: Create build of MvvmGen
working-directory: src/MvvmGen
run: dotnet build -c MvvmGen_PureCodeGeneration
- name: Pack MvvmGen as NuGet
run: dotnet pack -v normal -c MvvmGen_PureCodeGeneration --no-restore
working-directory: src/MvvmGen
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: nupkg
path: src/MvvmGen/bin/MvvmGen_PureCodeGeneration/*.nupkg