Skip to content

Commit 61afc15

Browse files
Add steps to publish and upload NuGet package to GitHub Release
1 parent 2d2b801 commit 61afc15

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/actions/ps-release/action.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,18 @@ runs:
6666
Set-StrictMode -Version Latest
6767
[void] (Import-Module InvokeBuild)
6868
Invoke-Build -NugetApiKey ${{ env.PSGALLERY_API_KEY }} -Task Publish
69+
70+
- name: Publish build package to Github Release
71+
shell: pwsh
72+
run: |
73+
Set-StrictMode -Version Latest
74+
[void] (Import-Module InvokeBuild)
75+
Invoke-Build -Task Package
76+
77+
- name: Upload build package to Github Release
78+
uses: actions/upload-release-asset@v1
79+
with:
80+
upload_url: ${{ steps.create_release.outputs.upload_url }}
81+
asset_path: ./build/package/*.nupkg
82+
asset_name: ${{ github.event.repository.name }}-v${{ inputs.release-version }}.nupkg
83+
asset_content_type: application/octet-stream

0 commit comments

Comments
 (0)