fix: invert more ifs #19
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 | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| env: | |
| DOTNET_VERSION: "9.x" | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: ${{ env.DOTNET_VERSION }} | |
| - name: Restore | |
| run: dotnet restore PhoenixTask.sln | |
| - name: Build | |
| run: dotnet build PhoenixTask.sln --configuration Release --no-restore | |
| - name: Test | |
| run: dotnet test PhoenixTask.sln --configuration Release --no-restore --no-build | |
| - name: Publish | |
| run: dotnet publish PhoenixTask.sln --configuration Release --no-restore --no-build |