Skip to content

Commit

Permalink
feat: Publish
Browse files Browse the repository at this point in the history
Restoring github action for now.
  • Loading branch information
thargy committed Oct 14, 2021
1 parent f1d20a8 commit ae1cc81
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
uses: dotnet/[email protected]
with:
setAllVars: true
- name: Setup .NET Core
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
Expand All @@ -29,9 +29,10 @@ jobs:
run: dotnet build --configuration Release --no-restore -p:ContinuousIntegrationBuild=true -p:DeterministicSourcePaths=true
- name: Test
run: dotnet test --configuration Release --no-build --verbosity normal -p:ContinuousIntegrationBuild=true -p:DeterministicSourcePaths=true
- name: Publish Package
run: dotnet nuget push **/bin/Release/*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://nuget.org --skip-duplicate
- name: Tag Release
run: git tag -a "v$env:GitBuildVersion" -m "Tag for NuGet Version $env:GitBuildVersion"
- name: Push Tag
run: git push origin "v$env:GitBuildVersion"
- name: Publish
uses: brandedoutcast/[email protected]
with:
PROJECT_FILE_PATH: HIDDevices/HIDDevices.csproj
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
INCLUDE_SYMBOLS: true
VERSION_STATIC: ${{env.NBGV_Version}}
2 changes: 1 addition & 1 deletion .github/workflows/validatepullrequest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
uses: dotnet/[email protected]
with:
setAllVars: true
- name: Setup .NET Core
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
Expand Down

0 comments on commit ae1cc81

Please sign in to comment.