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

ci(publish): fix action failure #46

Merged
merged 1 commit into from
Jul 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading