Automate Your C# Library Deployment: Publishing to NuGet and GitHub Packages with GitHub Actions

This page summarizes the projects mentioned and recommended in the original post on dev.to

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  1. YT-Nuget-Pkg-Release

    name: ci on: push: branches: [main] jobs: generate-version: runs-on: ubuntu-latest permissions: contents: write steps: - uses: actions/checkout@v2 - name: GitHub Tag Bump id: tab_bump uses: anothrNick/[email protected] env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} INITIAL_VERSION: 1.0.0 DEFAULT_BUMP: patch outputs: new_version: ${{ steps.tab_bump.outputs.new_tag }} package-and-publish-lib: runs-on: ubuntu-latest needs: generate-version steps: - uses: actions/checkout@v2 - name: Setup .NET uses: actions/setup-dotnet@v1 with: dotnet-version: 8.0.x - name: Generate NuGet package run: | dotnet pack MyAmazingLogger/ \ --configuration Release \ -p:PackageVersion=${{ needs.generate-version.outputs.new_version }} \ -p:RepositoryUrl=https://github.com/RafaelJCamara/YT-Nuget-Pkg-Release \ -o packages - name: Publish NuGet package run: dotnet nuget push packages/*.nupkg --api-key ${{ secrets.PUSH_NUGET }} --source https://nuget.pkg.github.com/RafaelJCamara/index.json

  2. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  3. github-tag-action

    A Github Action to tag a repo on merge.

    To help us on this task we are using an action called anothrNick/github-tag-action.

  4. semver

    Semantic Versioning Specification

    We know that our packages need to have a version. This version follows a format called semantic versioning. This is where the job called generate-version comes in. The output of this job is a version number that will be used when we publish our package in the package-and-publish-lib job.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Introduction to Building a Nuxt 3 Storefront with Medusa 2

    3 projects | dev.to | 17 Jan 2025
  • Fluent Assertions 8: Corporate License Update

    5 projects | dev.to | 17 Jan 2025
  • Introducing Kafbat UI: Simplify Kafka Management with a Modern UI

    1 project | dev.to | 17 Jan 2025
  • Top 33 Ubuntu Linux Commands Every User Should Know (with Outputs)

    1 project | dev.to | 17 Jan 2025
  • Debugging 2024: Lessons learned, wins, and achievements

    1 project | dev.to | 16 Jan 2025