File tree Expand file tree Collapse file tree 3 files changed +8
-10
lines changed Expand file tree Collapse file tree 3 files changed +8
-10
lines changed Original file line number Diff line number Diff line change 35
35
OPENAI_API_KEY : ${{ secrets.OPENAI_API_KEY }}
36
36
37
37
- name : Upload artifact
38
- uses : actions/upload-artifact@v2
38
+ uses : actions/upload-artifact@v4
39
39
if : ${{ !cancelled() }}
40
40
with :
41
41
name : test-artifacts
Original file line number Diff line number Diff line change 40
40
${{ env.version_suffix_args}}
41
41
42
42
- name : Upload artifact
43
- uses : actions/upload-artifact@v2
43
+ uses : actions/upload-artifact@v4
44
44
if : ${{ !cancelled() }}
45
45
with :
46
46
name : build-artifacts
Original file line number Diff line number Diff line change 57
57
OPENAI_API_KEY : ${{ secrets.OPENAI_API_KEY }}
58
58
59
59
- name : Upload artifact
60
- uses : actions/upload-artifact@v2
60
+ uses : actions/upload-artifact@v4
61
61
if : ${{ !cancelled() }}
62
62
with :
63
63
name : build-artifacts
@@ -67,16 +67,13 @@ jobs:
67
67
name : Publish Package
68
68
needs : build
69
69
runs-on : ubuntu-latest
70
- permissions :
71
- packages : write
72
- contents : write
73
70
steps :
74
- - uses : actions/download-artifact@v2
75
-
76
- # Append the nuget package to the github release that triggered this workflow
77
71
- name : Checkout code
78
72
uses : actions/checkout@v2
79
73
74
+ - name : Download build artifacts
75
+ uses : actions/download-artifact@v4
76
+
80
77
- name : Upload release asset
81
78
if : github.event_name == 'release'
82
79
run : gh release upload ${{ github.event.release.tag_name }}
95
92
- name : Publish package to local feed
96
93
run : dotnet nuget push
97
94
${{github.workspace}}/build-artifacts/packages/*.nupkg
98
- --source github
95
+ --source "github"
96
+ --api-key ${{ secrets.GITHUB_TOKEN }}
99
97
--skip-duplicate
100
98
101
99
- name : Publish package to nuget.org
You can’t perform that action at this time.
0 commit comments