Skip to content

Merge pull request #31 from USACE-RMC/bug-fixes-and-enhancements #3

Merge pull request #31 from USACE-RMC/bug-fixes-and-enhancements

Merge pull request #31 from USACE-RMC/bug-fixes-and-enhancements #3

Workflow file for this run

name: Release
on:
push:
tags:
- "v*.*.*"
permissions:
contents: read
jobs:
build:
runs-on: windows-latest
timeout-minutes: 90
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup .NET SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.0.x'
- name: Create version number
shell: pwsh
run: |
$tag = $env:GITHUB_REF -replace 'refs/tags/', ''
$version = $tag -replace '^v', ''
"VERSION=$version" >> $env:GITHUB_ENV
- name: Restore
run: dotnet restore WPF-Framework.sln
- name: Build
shell: pwsh
run: dotnet build WPF-Framework.sln -c Release --no-restore /p:Version=$env:VERSION
- name: Test
env:
VSTEST_CONNECTION_TIMEOUT: '600'
run: dotnet test WPF-Framework.sln -c Release --no-build
- name: Pack
shell: pwsh
run: .\scripts\pack-wpf-framework.ps1 -Configuration Release -Version $env:VERSION -OutputDirectory packages -SkipRestore -SkipBuild
- name: Upload packages
uses: actions/upload-artifact@v4
with:
name: wpf-framework-packages
path: packages/*.nupkg
retention-days: 30