Skip to content

Commit 4505ecb

Browse files
committed
Update workflows.
1 parent f455eb9 commit 4505ecb

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.github/workflows/build-and-publish.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
name: build-and-publish
22

3-
env:
4-
PROJECT: Confluent.Kafka.Core
5-
63
on:
74
workflow_call:
5+
inputs:
6+
PROJECT:
7+
required: true
8+
type: string
89
secrets:
910
NUGET_API_KEY:
1011
required: true
@@ -36,4 +37,4 @@ jobs:
3637
run: dotnet build --configuration Release --no-restore
3738

3839
- name: Push packages
39-
run: dotnet nuget push "**/$PROJECT*.nupkg" -k $NUGET_API_KEY -s $NUGET_SOURCE --skip-duplicate
40+
run: dotnet nuget push "**/${{ inputs.PROJECT }}*.nupkg" -k ${{ secrets.NUGET_API_KEY }} -s ${{ secrets.NUGET_SOURCE }} --skip-duplicate

.github/workflows/build-and-tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ jobs:
5353
needs: build-and-test
5454
if: github.ref == 'refs/heads/main'
5555
uses: ./.github/workflows/build-and-publish.yml
56+
with:
57+
PROJECT: Confluent.Kafka.Core
5658
secrets:
5759
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
5860
NUGET_SOURCE: ${{ secrets.NUGET_SOURCE }}

0 commit comments

Comments
 (0)