Deploy NuGet Packages w/ GitHub Actions (Automatic Versioning) - DEVOPS (C#/.NET)

Deploy NuGet Packages w/ GitHub Actions (Automatic Versioning) - DEVOPS (C#/.NET)

SingletonSean

4 года назад

8,915 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@TFayas
@TFayas - 20.05.2023 02:47

Oh also, if anyone runs across that the version thing used in here no longer works, this is what i ended up using:

- name: version-from-tag-action
id: version
uses: Im-Fran/[email protected]
with:
remove-first-character: 'v'
version-variable-name: 'VERSION'

- name: 'Pack Project'
run: dotnet pack ${{ env.PROJECT_PATH }} --no-restore --no-build --configuration Release --include-symbols -p:SymbolPackageFormat=snupkg -p:PackageVersion=${{ env.VERSION }} --output ${{ env.PACKAGE_OUTPUT_DIRECTORY }}

Ответить
@TFayas
@TFayas - 20.05.2023 00:20

Thanks man, a real life saver for an actions newb like me :P

Ответить
@AmitabhMukherjee-ut7oe
@AmitabhMukherjee-ut7oe - 01.02.2023 23:32

You explanation is amazing!

Ответить
@kartzull
@kartzull - 19.01.2023 18:56

Thanks for the explanation.
I've tried and noticed that this argument need to be addedbto the pack cmd :
" -p:SymbolPackageFormat=snupkg"
to use the '.snupkg' extension for the symbols instead of 'symbols.nupkg'. Otherwise, the push tries to push the symbolic file as well

Ответить
@vahidrashidli5551
@vahidrashidli5551 - 28.07.2022 20:07

You are awesome !

Ответить
@ranavitaln
@ranavitaln - 25.07.2022 18:09

how I can fix it ? error: Could not find a part of the path in section Push package

Ответить
@maslak
@maslak - 28.10.2021 22:04

excellent Sean. saved me a few hours of research - mucho thanko

Ответить
@idan5323
@idan5323 - 17.10.2021 20:36

Thank you man, much help!

Ответить
@kirilkirilov6241
@kirilkirilov6241 - 01.10.2021 21:13

Thank you. This will not se the version of the assembly, will it? Any automation about that?

Ответить
@joaoluiz-sy4zy
@joaoluiz-sy4zy - 05.08.2021 16:24

I fucking love you man!

Ответить
@sonomirco3
@sonomirco3 - 24.07.2021 11:48

This was very useful.

Ответить
@cyrildouglas9262
@cyrildouglas9262 - 10.04.2021 11:05

Thanks for this great tutorial, Can we use GitHub actions to deploy packages to Azure Artifacts? If yes what are the modifications to your code to do that?

Ответить
@samskins
@samskins - 06.04.2021 01:11

Perfect, exactly what I needed.

Ответить
@rubenruvalcabac
@rubenruvalcabac - 19.01.2021 21:34

Thank you it's a great tutorial!

Ответить
@CryptoJitsu
@CryptoJitsu - 14.01.2021 01:03

Will this give me a Nuspec file with Dependencies because the nuget pack quietly leaves those out of the file... i just sadly found out.

Ответить
@knowfaster8785
@knowfaster8785 - 06.10.2020 15:00

How to deploy wpf application to exe

Ответить