Skip to content

Update dotnet-build.yml #5

Update dotnet-build.yml

Update dotnet-build.yml #5

Workflow file for this run

name: .NET Build
on:
push:
branches: [ "master", "develop" ]
pull_request:
branches: [ "develop" ]
jobs:
build:
runs-on: windows-2019 # .NET 4.x SDK
steps:
- uses: actions/checkout@v6
- name: Get date and shorthash
run: |
echo "date=$(date +'%Y%m%d')" >> $GITHUB_ENV
echo "shorthash=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
- uses: actions/setup-dotnet@v5
- run: dotnet build -c Release
- name: GUI
uses: actions/upload-artifact@v6
with:
name: OpenDBDiffGUI-${{ env.date }}-${{ env.shorthash }}
path: |
OpenDBDiff\bin\Release\net48
OpenDBDiff.CLI\bin\Release\net48\OpenDBDiff.CLI.*
- name: CLI
uses: actions/upload-artifact@v6
with:
name: OpenDBDiffCLI-${{ env.date }}-${{ env.shorthash }}
path: OpenDBDiff.CLI\bin\Release\net5.0