Skip to content

Commit

Permalink
ci(publish): fix action failure
Browse files Browse the repository at this point in the history
replace unmaintained brandedoutcast/publish-nuget action with CLI
commands
  • Loading branch information
NextFire authored and ouvreboite committed Jul 18, 2024
1 parent 6d354a5 commit 7acd069
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@ on:
jobs:
publish:
runs-on: ubuntu-latest
strategy:
matrix:
package:
- Criteo.OpenApi.Comparator
- Criteo.OpenApi.Comparator.Cli
steps:
- uses: actions/checkout@v3
- name: Setup .NET Core SDK
Expand All @@ -20,12 +15,12 @@ jobs:
dotnet-version: |
6.x
8.x
- name: Publish ${{ matrix.package }} to NuGet
uses: brandedoutcast/publish-nuget@v2
- name: Pack
run: dotnet pack -o ./artifacts
- name: Publish
run: dotnet nuget push ./artifacts/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }}
- uses: actions/upload-artifact@v4
if: always()
with:
PROJECT_FILE_PATH: src/${{ matrix.package }}/${{ matrix.package }}.csproj
BUILD_CONFIGURATION: Release
TAG_COMMIT: true
TAG_FORMAT: v*
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
PACKAGE_NAME: ${{ matrix.package }}
name: nuget-packages
path: ./artifacts/*.nupkg

0 comments on commit 7acd069

Please sign in to comment.