Giter VIP home page Giter VIP logo

publish-to-nuget's Introduction

publish-to-nuget

Publish a package to nuget package manager

Why I had to create this Git Hub Action

I needed an action which can build, pack and then push that to Nuget PM

For that, this github action fits the bill.

However, for .net 6 projects, it has got this File does not exist (1) bug

The issue is with dotnet 6 option -n as explained here.

Infact a PR is already submitted, but looks like this project is abandoned.

So here I attempted to recreate the same repo with the above fix applied here.

I followed this tutorial

I did one more thing. I applied the version parameter to the build here.

So the full command to build will now look like this

dotnet build -c Release src/Avts.DecoratorsForCcc/Avts.DecoratorsForCcc.Package/Avts.DecoratorsForCcc.Package.csproj -p:Version=0.0.25

Now the dlls will also show the version of the nuget package.

Some Notes

The following npm package has to be installed globally

npm i -g @vercel/ncc

Then when ever you change any file(index.js or action.yml etc)

run the followng

ncc build index.js -o dist

Reference:

publish-to-nuget's People

Contributors

avtsvivek avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.