Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.NET norm package publish #19

Merged
merged 17 commits into from
Jul 4, 2023
Merged
Prev Previous commit
Next Next commit
Added publish job
  • Loading branch information
mullerj committed Jul 4, 2023
commit 3f15ff55d433bbc44d2d28dea6be6617e6c4757b
29 changes: 29 additions & 0 deletions .github/workflows/dotnet-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,35 @@ name: ".NET Publish"
on: [push, pull_request]

jobs:
publish:

runs-on: ubuntu-latest
permissions:
packages: write
defaults:
run:
working-directory: ./src/dotnet

steps:
- uses: actions/checkout@v3
with:
submodules: recursive

- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
source-url: https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json
env:
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

- name: Package .NET
run: dotnet pack . -c Release
- name: Publish .NET
run: |
package=$(find . -type f -name "*.nupkg")
dotnet nuget push "$package" --skip-duplicate

publish-linux-x64:

runs-on: ubuntu-latest
Expand Down