Skip to content

Commit

Permalink
nuget
Browse files Browse the repository at this point in the history
  • Loading branch information
KSemenenko committed Jun 3, 2024
1 parent e02efce commit 8e374a7
Showing 1 changed file with 35 additions and 35 deletions.
70 changes: 35 additions & 35 deletions .github/workflows/nuget.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
# name: nuget
#
# on:
# push:
# branches: [ main ]
#
# # Allows you to run this workflow manually from the Actions tab
# workflow_dispatch:
#
# jobs:
# nuget-pack:
#
# runs-on: ubuntu-latest
#
# steps:
# - uses: actions/checkout@v3
# - name: Setup .NET
# uses: actions/setup-dotnet@v3
# with:
# dotnet-version: 7.0.x
#
# - name: Restore dependencies
# run: dotnet restore
# - name: Build
# run: dotnet build --configuration Release
# - name: Pack
# run: dotnet pack -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg --configuration Release
#
# - name: publish nuget packages
# run: |
# shopt -s globstar
# for file in **/*.nupkg
# do
# dotnet nuget push "$file" --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate --no-symbols
# done
name: nuget

on:
push:
branches: [ main ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
nuget-pack:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x

- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release
- name: Pack
run: dotnet pack -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg --configuration Release

- name: publish nuget packages
run: |
shopt -s globstar
for file in **/*.nupkg
do
dotnet nuget push "$file" --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate --no-symbols
done

0 comments on commit 8e374a7

Please sign in to comment.