File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 1
1
name : build-and-publish
2
2
3
- env :
4
- PROJECT : Confluent.Kafka.Core
5
-
6
3
on :
7
4
workflow_call :
5
+ inputs :
6
+ PROJECT :
7
+ required : true
8
+ type : string
8
9
secrets :
9
10
NUGET_API_KEY :
10
11
required : true
36
37
run : dotnet build --configuration Release --no-restore
37
38
38
39
- 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
Original file line number Diff line number Diff line change 53
53
needs : build-and-test
54
54
if : github.ref == 'refs/heads/main'
55
55
uses : ./.github/workflows/build-and-publish.yml
56
+ with :
57
+ PROJECT : Confluent.Kafka.Core
56
58
secrets :
57
59
NUGET_API_KEY : ${{ secrets.NUGET_API_KEY }}
58
60
NUGET_SOURCE : ${{ secrets.NUGET_SOURCE }}
You can’t perform that action at this time.
0 commit comments