{"id":51477171,"url":"https://github.com/lee-lott-actions/deploy-nuget-package","last_synced_at":"2026-07-06T22:01:19.974Z","repository":{"id":356751446,"uuid":"1137792274","full_name":"lee-lott-actions/deploy-nuget-package","owner":"lee-lott-actions","description":"This repository contains a GitHub Action that automates the deployment of NuGet packages to a specified NuGet feed, such as GitHub Packages or nuget.org, directly from your workflow.","archived":false,"fork":false,"pushed_at":"2026-06-25T15:14:31.000Z","size":34,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-25T17:06:19.889Z","etag":null,"topics":["devops"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lee-lott-actions.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-19T21:00:09.000Z","updated_at":"2026-06-09T23:15:47.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/lee-lott-actions/deploy-nuget-package","commit_stats":null,"previous_names":["lee-lott-actions/deploy-nuget-package"],"tags_count":4,"template":false,"template_full_name":"lee-lott-actions/template-github-action-repo","purl":"pkg:github/lee-lott-actions/deploy-nuget-package","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lee-lott-actions%2Fdeploy-nuget-package","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lee-lott-actions%2Fdeploy-nuget-package/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lee-lott-actions%2Fdeploy-nuget-package/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lee-lott-actions%2Fdeploy-nuget-package/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lee-lott-actions","download_url":"https://codeload.github.com/lee-lott-actions/deploy-nuget-package/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lee-lott-actions%2Fdeploy-nuget-package/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35206987,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-06T02:00:07.184Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["devops"],"created_at":"2026-07-06T22:01:19.200Z","updated_at":"2026-07-06T22:01:19.958Z","avatar_url":"https://github.com/lee-lott-actions.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Deploy NuGet Package Action\n\nThis GitHub Action automates the deployment of a NuGet package to a specified NuGet URL (such as GitHub Packages or nuget.org). It pushes a `.nupkg` artifact directly from your workflow, ideal for publishing .NET libraries or internal packages as part of your CI/CD process.\n\n---\n\n## Features\n\n- Deploys a NuGet package (`.nupkg`) to a specified NuGet feed using `dotnet nuget push`.\n- Supports authentication using a token.\n- Skips uploading if the package version already exists (`--skip-duplicate`).\n- Adds deployment details to the GitHub job summary.\n\n---\n\n## Inputs\n\n| Name                   | Description                                                      | Required |\n|------------------------|------------------------------------------------------------------|----------|\n| `nuget-file-path`      | Full path to the NuGet package to deploy.                        | Yes      |\n| `nuget-url`            | URL of the NuGet feed (e.g., GitHub Packages, nuget.org).        | Yes      |\n| `nuget-package-name`   | Name of the NuGet package for this release.                      | Yes      |\n| `nuget-package-version`| Version number of the NuGet package for this release.            | Yes      |\n| `version-tag`          | The version tag of the NuGet package (contains the \"v\" prefix)   | Yes      |\n| `deployment-environment` | The name of the environment for the GitHub deployment          | Yes      |\n| `org-name`             | The name of the GitHub organization.                             | Yes      |\n| `repo-name`            | The name of the repository.                                      | Yes      |\n| `token`                | GitHub token for authentication to upload the package.           | Yes      |\n\n---\n\n## Usage\n\nAdd this action as a step after your build, pack, or release process.\n\n### Example Workflow\n\n```yaml\nname: Deploy NuGet Package\n\non:\n  release:\n    types: [published]\n\njobs:\n  deploy-nuget:\n    runs-on: windows-latest\n    steps:\n      - name: Checkout repository\n        uses: actions/checkout@v6\n      \n      - name: Deploy NuGet Package\n        uses: lee-lott-actions/deploy-nuget-package@v2\n        with:\n          nuget-file-path: 'src/bin/Release/MyLib.1.0.0.nupkg'\n          nuget-url: 'https://nuget.pkg.github.com/your-org/index.json'\n          nuget-package-name: 'MyLib'\n          nuget-package-version: '1.0.0'\n          version-tag: 'v1.0.0'\n          deployment-environment: 'Production'\n          org-name: 'your-org'\n          repo-name: 'your-repo'\n          token: ${{ secrets.GITHUB_TOKEN }}\n```\n\n---\n\n## Notes\n\n- The action uses [`dotnet nuget push`](https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-nuget-push) and requires the `.nupkg` file path to be correct and available on the runner.\n- The provided token should have `write:packages` or equivalent permission for GitHub Packages or the relevant NuGet feed.\n- The action does **not** fail on duplicate version uploads; it will just continue if the package version has already been published (`--skip-duplicate`).\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flee-lott-actions%2Fdeploy-nuget-package","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flee-lott-actions%2Fdeploy-nuget-package","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flee-lott-actions%2Fdeploy-nuget-package/lists"}