diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f4623df..425904c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,22 +10,16 @@ jobs: runs-on: [windows-latest] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Setup MSBuild - uses: microsoft/setup-msbuild@v1.0.2 - env: - ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' + uses: microsoft/setup-msbuild@v1.1 - name: Setup NuGet - uses: NuGet/setup-nuget@v1.0.2 - env: - ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' + uses: nuget/setup-nuget@v1 - name: Restore NuGet Packages run: nuget restore SierraHOTAS.sln - env: - ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' - name: Build run: msbuild SierraHOTAS.sln -m /p:Configuration=Release @@ -36,12 +30,9 @@ jobs: - name: Test run: dotnet test tests\bin\Release\SierraHOTAS.Tests.dll --logger "html;logfilename=sierrahotas-test-results.html" -# - name: Test -# run: dotnet test tests\bin\Release\SierraHOTAS.Tests.dll --logger "trx;logfilename=sierrahotas-test-results.xml" - - name: Upload Unit Test Results if: always() - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: Unit Test Results path: TestResults\sierrahotas-test-results.html @@ -53,9 +44,8 @@ jobs: # run: ls -R - name: Create release - uses: softprops/action-gh-release@v1 + uses: ncipollo/release-action@v1 with: - tag_name: v${{ github.run_number }} + tag: v${{ github.run_number }} name: Release ${{ github.run_number }} - files: SierraHOTASSetup\Installer\SierraHOTAS-Release-* - + artifacts: SierraHOTASSetup\Installer\SierraHOTAS-Release-*.msi