Change calculation logic #52
This file contains hidden or 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: Build WPF App | |
| on: | |
| push: | |
| branches: [ master, develop ] | |
| pull_request: | |
| jobs: | |
| build: | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| fetch-tags: true | |
| - name: Install Nerdbank.GitVersioning | |
| uses: dotnet/nbgv@master | |
| id: nbgv | |
| - name: Show version | |
| run: echo "Version = ${{ steps.nbgv.outputs.SimpleVersion }}" | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v3 | |
| with: | |
| dotnet-version: '8.0.x' | |
| - name: Show working directory | |
| run: pwd | |
| - name: Publish WPF App | |
| run: > | |
| dotnet publish ./PairTradingView.WpfApp/PairTradingView.WpfApp.csproj | |
| -c Release | |
| -p:Version=${{ steps.nbgv.outputs.SimpleVersion }} | |
| -p:AssemblyVersion=${{ steps.nbgv.outputs.SimpleVersion }} | |
| -p:FileVersion=${{ steps.nbgv.outputs.SimpleVersion }} | |
| -p:DebugType=None | |
| -p:DebugSymbols=false | |
| --self-contained:false | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: PairTradingView-${{ steps.nbgv.outputs.SimpleVersion }} | |
| path: ./PairTradingView.WpfApp/bin/Release/net8.0-windows/publish/ | |