Skip to content

Conversation

@Speykious
Copy link
Contributor

Finally, we managed to publish this to Nuget!
This PR fixes CI deployment issues once and for all.

Usage: dotnet nuget push [arguments] [options]

Arguments:
  [root]  Specify the path to the package and your API key to push the package to the server.

Options:
  -h|--help                      Show help information
  --force-english-output         Forces the application to run using an invariant, English-based culture.
  -s|--source <source>           Package source (URL, UNC/folder path or package source name) to use. Defaults to DefaultPushSource if specified in NuGet.Config.
  -ss|--symbol-source <source>   Symbol server URL to use.
  -t|--timeout <timeout>         Timeout for pushing to a server in seconds. Defaults to 300 seconds (5 minutes).
  -k|--api-key <apiKey>          The API key for the server.
  -sk|--symbol-api-key <apiKey>  The API key for the symbol server.
  -d|--disable-buffering         Disable buffering when pushing to an HTTP(S) server to decrease memory usage.
  -n|--no-symbols                If a symbols package exists, it will not be pushed to a symbols server.
  --no-service-endpoint          Does not append "api/v2/package" to the source URL.
  --interactive                  Allow the command to block and require manual action for operations like authentication.
  --skip-duplicate               If a package and version already exists, skip it and continue with the next package in the push, if any. command
@Speykious Speykious added the enhancement New feature or request label Jan 8, 2022
@Speykious Speykious requested a review from sr229 January 8, 2022 16:53
@Speykious Speykious self-assigned this Jan 8, 2022
@Speykious
Copy link
Contributor Author

Oof, I just realized that I didn't synchronize the CI workflow well. gimme a sec

@Speykious Speykious marked this pull request as draft January 8, 2022 16:55
Avoid redundant steps, like building both on push and on pull request.
- Do not trigger for any tag, because Deploy builds on release.
- Only trigger push on the master branch, we can't PR master to master.
- Trigger on any pull request, we want to verify that things build.
@Speykious Speykious marked this pull request as ready for review January 8, 2022 18:17
@Speykious
Copy link
Contributor Author

Well now it does, perfect :D

@adryzz adryzz self-requested a review January 8, 2022 19:21
Copy link
Collaborator

@adryzz adryzz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, lets wait for ayane

Copy link
Member

@sr229 sr229 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you're planning to actually fix this, then let's have a step for the Production environment, at the moment you're all deploying via the Pre-release environment. Create a dedicated deploy step for the Production environment.

@Speykious
Copy link
Contributor Author

That's fine, however I don't think we need a dedicated deploy step for production. They'd both be the same without any modification. How about I just edit the environment as environment: ${{ github.event.environment }}?

@sr229
Copy link
Member

sr229 commented Jan 9, 2022

That's fine, however I don't think we need a dedicated deploy step for production. They'd both be the same without any modification. How about I just edit the environment as environment: ${{ github.event.environment }}?

I tried that and it didn't work so the best course of action is hardocde it

@Speykious
Copy link
Contributor Author

Awesome! It looks like ${{ github.event.release.prerelease && 'Pre-release' || 'Production' }} is a perfect fit.
The Production deployment "error" up there is just me cancelling it - we've already published the packages.

Testing has been a success!
Reflecting back, I shouldn't even have changed the version to test.
Eh, doesn't really matter anymore.
@Speykious Speykious merged commit 09a7175 into master Jan 11, 2022
@Speykious Speykious deleted the deploy branch January 11, 2022 03:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants