Skip to content

Commit

Permalink
ci: merge publish_cli.yml and publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
NextFire committed Jul 17, 2024
1 parent 436be91 commit a40c75f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 31 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,31 @@
name: Packages publication

on:
release:
types: [created]

jobs:
build:
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 ${{ matrix.dotnet-version }}
- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v2
with:
dotnet-version: |
6.x
8.x
- name: Publish Criteo.OpenApi.Comparator to NuGet
id: publish_package_nuget
- name: Publish ${{ matrix.package }} to NuGet
uses: brandedoutcast/publish-nuget@v2
with:
PROJECT_FILE_PATH: src/Criteo.OpenApi.Comparator/Criteo.OpenApi.Comparator.csproj
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: Criteo.OpenApi.Comparator
PACKAGE_NAME: ${{ matrix.package }}
25 changes: 0 additions & 25 deletions .github/workflows/publish_cli.yml

This file was deleted.

0 comments on commit a40c75f

Please sign in to comment.