Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/joekolodz/SierraHOTAS
Browse files Browse the repository at this point in the history
  • Loading branch information
joekolodz committed Jun 19, 2023
2 parents 687f17b + 6c7a62e commit be6fff6
Showing 1 changed file with 7 additions and 17 deletions.
24 changes: 7 additions & 17 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,16 @@ jobs:
runs-on: [windows-latest]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Setup MSBuild
uses: microsoft/[email protected]
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
uses: microsoft/[email protected]

- name: Setup NuGet
uses: NuGet/[email protected]
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
Expand All @@ -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
Expand All @@ -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

0 comments on commit be6fff6

Please sign in to comment.