-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update deployment process so that packages can be released independently
Untested, but the idea is that versions are still in the Makefile, but now separated per package. Releases are now triggered via tags, e.g. xRetry_v1.9.0 or xRetry.Reqnroll_v1.0.0-alpha1. The tag name prefix is what will trigger the release of that specific package. Note: the version in the tag is for info only (git history & GH releases). The actual package version deployed will be what is in the makefile, and if it's a Reqnroll or SpecFlow plugin package, the xRetry version they depend on will also be from the Makefile.
- Loading branch information
1 parent
ca54b1c
commit c51c437
Showing
7 changed files
with
42 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,18 @@ | ||
#!/bin/bash | ||
set -euxo pipefail | ||
|
||
# | ||
# Deploy script | ||
# Args: | ||
# NuGet API Key | ||
# | ||
# - Package name (e.g. xRetry) | ||
# - NuGet API Key | ||
|
||
apiKey=$1 | ||
package=$1 | ||
apiKey=$2 | ||
|
||
# Must explicitly say there are no symbols for the nuget package, or it will error saying there aren't any accompanying *.snupkg files | ||
dotnet nuget push \ | ||
--source https://api.nuget.org/v3/index.json \ | ||
--api-key $apiKey \ | ||
--no-symbols ../artefacts/nuget/\*.nupkg \ | ||
../artefacts/nuget/\*.nupkg | ||
--no-symbols ../artefacts/nuget/$package.\*.nupkg \ | ||
../artefacts/nuget/$package.\*.nupkg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters