Skip to content

Commit

Permalink
Merge pull request #16 from jtucholski/main
Browse files Browse the repository at this point in the history
Update dotnet-core.yml
  • Loading branch information
jtucholski authored Feb 28, 2024
2 parents e712bce + 62135a5 commit c31a1e2
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions .github/workflows/dotnet-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,17 @@ jobs:
run: dotnet build --configuration Release --no-restore
- name: Test
run: dotnet test --no-restore --verbosity normal
deploy:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/production'
steps:
- uses: actions/checkout@v4
- name: Publish MenuFramework
uses: brandedoutcast/publish-nuget@v2.5.5
with:
PROJECT_FILE_PATH: MenuFramework/MenuFramework.csproj
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
- name: Pack nugets
run: dotnet pack -c Release --no-build --output .
- name: Push to NuGet
run: dotnet nuget push "*.nupkg" --api-key ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json
# deploy:
# runs-on: ubuntu-latest
# if: github.ref == 'refs/heads/production'
# steps:
# - uses: actions/checkout@v4
# - name: Publish MenuFramework
# uses: brandedoutcast/publish-nuget@v2.5.5
# with:
# PROJECT_FILE_PATH: MenuFramework/MenuFramework.csproj
# NUGET_KEY: ${{secrets.NUGET_API_KEY}}

0 comments on commit c31a1e2

Please sign in to comment.