Skip to content

Commit 8e5a9bf

Browse files
committed
Upload artifacts to GH Release if published
1 parent f0b930d commit 8e5a9bf

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

‎.github/workflows/cicd.yaml‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,24 @@ jobs:
4444
TODO
4545
draft: true
4646
prerelease: false
47+
- name: Upload to GH Release
48+
if: startsWith( github.ref, 'refs/tags/')
49+
run: |
50+
zip -j SpotifyAPI.Web-netstandard2.0.zip SpotifyAPI.Web/bin/Release/netstandard2.0/*
51+
zip -j SpotifyAPI.Web-netstandard2.1.zip SpotifyAPI.Web/bin/Release/netstandard2.1/*
52+
zip -j SpotifyAPI.Web-net5.0.zip SpotifyAPI.Web/bin/Release/net5.0/*
53+
54+
zip -j SpotifyAPI.Web.Auth-netstandard2.0.zip SpotifyAPI.Web.Auth/bin/Release/netstandard2.0/*
55+
zip -j SpotifyAPI.Web.Auth-netstandard2.1.zip SpotifyAPI.Web.Auth/bin/Release/netstandard2.1/*
56+
zip -j SpotifyAPI.Web.Auth-net5.0.zip SpotifyAPI.Web.Auth/bin/Release/net5.0/*
57+
58+
hub release edit \
59+
-a "SpotifyAPI.Web-netstandard2.0.zip" \
60+
-a "SpotifyAPI.Web-netstandard2.1.zip" \
61+
-a "SpotifyAPI.Web-net5.0.zip" \
62+
-a "SpotifyAPI.Web.Auth-netstandard2.0.zip" \
63+
-a "SpotifyAPI.Web.Auth-netstandard2.1.zip" \
64+
-a "SpotifyAPI.Web.Auth-net5.0.zip" \
65+
-m "" "$GITHUB_REF"
66+
env:
67+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)