Skip to content

Commit 68c56e0

Browse files
authored
Merge pull request #31 from Geta/feature/release-action-upgrade
Added new steps to release
2 parents 72dcdc0 + 776c38a commit 68c56e0

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,16 @@ jobs:
3131
dotnet nuget push Geta.Optimizely.Tags.${{env.VERSION}}.nupkg --source https://nuget.pkg.github.com/Geta/index.json --api-key ${{env.GITHUB_TOKEN}}
3232
env:
3333
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
- name: Create GitHub Release with Auto-Generated Notes
35+
run: |
36+
gh release create ${{ github.ref_name }} --generate-notes
37+
env:
38+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39+
- name: Loop through all .nupkg files in the current directory and upload them to the release
40+
run: |
41+
Get-ChildItem -Filter *.nupkg -Recurse | ForEach-Object {
42+
Write-Host "Uploading file: $($_.Name)"
43+
gh release upload ${{ github.ref_name }} $_.FullName --clobber
44+
}
45+
env:
46+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)