48
48
with :
49
49
name : version.json
50
50
path : ./version/version.json
51
+ if-no-files-found : error
51
52
- name : Unzip PSGallery-package
52
53
shell : pwsh
53
54
run : Expand-Archive -Path "PSGallery-package.zip" -DestinationPath ./package/
56
57
with :
57
58
name : PSGallery-package
58
59
path : ./package/*.nupkg
60
+ if-no-files-found : error
59
61
- name : Unzip release-notes.md
60
62
shell : pwsh
61
63
run : Expand-Archive -Path "release-notes.md.zip" -DestinationPath ./release-notes/
64
66
with :
65
67
name : release-notes.md
66
68
path : ./release-notes/release-notes.md
69
+ if-no-files-found : error
67
70
68
71
test-publish-psgallery-package :
69
72
name : Test Publish to PSGallery
90
93
Set-PSRepository PSGallery -InstallationPolicy Trusted
91
94
./build/restore.ps1
92
95
- name : " Get artifact: PSGallery-package"
93
- uses : actions/download-artifact@v2
96
+ uses : actions/download-artifact@v3
94
97
with :
95
98
name : PSGallery-package
96
99
path : ./out/
@@ -127,21 +130,13 @@ jobs:
127
130
run : |
128
131
Set-PSRepository PSGallery -InstallationPolicy Trusted
129
132
./build/restore.ps1
130
- - name : " Get artifact: version.json"
131
- uses : actions/download-artifact@v2
132
- with :
133
- name : version.json
134
- path : ./out/
135
133
- name : Populate GitVersion variables
136
134
id : gitversion_vars
137
- shell : pwsh
138
- run : |
139
- [object] $version = Get-Content -Path ./out/version.json -Encoding UTF8 | ConvertFrom-Json
140
- foreach ($key in $version.PSObject.Properties.Name) {
141
- echo "::set-output name=$key::$($version.$key)"
142
- }
135
+
136
+ with :
137
+ mode : ' download'
143
138
- name : " Get artifact: PSGallery-package"
144
- uses : actions/download-artifact@v2
139
+ uses : actions/download-artifact@v3
145
140
with :
146
141
name : PSGallery-package
147
142
path : ./out/
@@ -165,26 +160,18 @@ jobs:
165
160
steps :
166
161
- name : Check out repository code
167
162
uses : actions/checkout@v3
168
- - name : " Get artifact: version.json"
169
- uses : actions/download-artifact@v2
170
- with :
171
- name : version.json
172
- path : ./out/
173
163
- name : Populate GitVersion variables
174
164
id : gitversion_vars
175
- shell : pwsh
176
- run : |
177
- [object] $version = Get-Content -Path ./out/version.json -Encoding UTF8 | ConvertFrom-Json
178
- foreach ($key in $version.PSObject.Properties.Name) {
179
- echo "::set-output name=$key::$($version.$key)"
180
- }
165
+
166
+ with :
167
+ mode : ' download'
181
168
- name : " Get artifact: release-notes.md"
182
- uses : actions/download-artifact@v2
169
+ uses : actions/download-artifact@v3
183
170
with :
184
171
name : release-notes.md
185
172
path : ./out/
186
173
- name : " Get artifact: PSGallery-package"
187
- uses : actions/download-artifact@v2
174
+ uses : actions/download-artifact@v3
188
175
with :
189
176
name : PSGallery-package
190
177
path : ./out/
0 commit comments