mirror of
https://github.com/Sarsoo/Spotify.NET.git
synced 2024-12-23 22:56:25 +00:00
Upload artifacts to GH Release if published
This commit is contained in:
parent
f0b930de92
commit
8e5a9bffc4
21
.github/workflows/cicd.yaml
vendored
21
.github/workflows/cicd.yaml
vendored
@ -44,3 +44,24 @@ jobs:
|
||||
TODO
|
||||
draft: true
|
||||
prerelease: false
|
||||
- name: Upload to GH Release
|
||||
if: startsWith( github.ref, 'refs/tags/')
|
||||
run: |
|
||||
zip -j SpotifyAPI.Web-netstandard2.0.zip SpotifyAPI.Web/bin/Release/netstandard2.0/*
|
||||
zip -j SpotifyAPI.Web-netstandard2.1.zip SpotifyAPI.Web/bin/Release/netstandard2.1/*
|
||||
zip -j SpotifyAPI.Web-net5.0.zip SpotifyAPI.Web/bin/Release/net5.0/*
|
||||
|
||||
zip -j SpotifyAPI.Web.Auth-netstandard2.0.zip SpotifyAPI.Web.Auth/bin/Release/netstandard2.0/*
|
||||
zip -j SpotifyAPI.Web.Auth-netstandard2.1.zip SpotifyAPI.Web.Auth/bin/Release/netstandard2.1/*
|
||||
zip -j SpotifyAPI.Web.Auth-net5.0.zip SpotifyAPI.Web.Auth/bin/Release/net5.0/*
|
||||
|
||||
hub release edit \
|
||||
-a "SpotifyAPI.Web-netstandard2.0.zip" \
|
||||
-a "SpotifyAPI.Web-netstandard2.1.zip" \
|
||||
-a "SpotifyAPI.Web-net5.0.zip" \
|
||||
-a "SpotifyAPI.Web.Auth-netstandard2.0.zip" \
|
||||
-a "SpotifyAPI.Web.Auth-netstandard2.1.zip" \
|
||||
-a "SpotifyAPI.Web.Auth-net5.0.zip" \
|
||||
-m "" "$GITHUB_REF"
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
Loading…
Reference in New Issue
Block a user