-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added publishusages.yml to generate and publish HIDDevice.Usages NuGet * Publish only occurs when source code for relevant NuGet changes * Build & Test now runs for all other source code changes, and pull requests.
- Loading branch information
Showing
4 changed files
with
59 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Build and Publish HIDDevices.Usages | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
|
||
paths-ignore: | ||
- '**/.md' | ||
- '**/.txt' | ||
- '.github/**' | ||
- 'HIDDevices/**' | ||
- 'HIDDevices.Sample/**' | ||
- 'HIDDevices.Test/**' | ||
|
||
jobs: | ||
publish: | ||
|
||
runs-on: windows-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 # Avoid shallow clone so NBGV can do its work. | ||
submodules: 'recursive' | ||
- name: Set version | ||
uses: dotnet/nbgv@v0.4.0 | ||
with: | ||
setAllVars: true | ||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: '8.0.x' | ||
include-prerelease: true | ||
- name: Install dependencies | ||
run: dotnet restore | ||
- name: Build | ||
run: dotnet build --configuration GenerateFromSource --no-restore -p:ContinuousIntegrationBuild=true -p:DeterministicSourcePaths=true | ||
- name: Test | ||
run: dotnet test --configuration GenerateFromSource --no-build --verbosity normal -p:ContinuousIntegrationBuild=true -p:DeterministicSourcePaths=true | ||
- name: Publish | ||
uses: alirezanet/publish-nuget@v3.0.0 | ||
with: | ||
PROJECT_FILE_PATH: HIDDevices.Usages/HIDDevices.Usages.csproj | ||
NUGET_KEY: ${{secrets.NUGET_API_KEY}} | ||
INCLUDE_SYMBOLS: true | ||
VERSION_STATIC: ${{env.NBGV_Version}} |
5 changes: 4 additions & 1 deletion
5
.github/workflows/validatepullrequest.yml → .github/workflows/validate.yml
This file contains 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
This file contains 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