Skip to content
package

GitHub Action

Push Nupkg to GitHub Packages

v2.1 Latest version
Use latest version
package

Push Nupkg to GitHub Packages

This cross-platform action publishes Nupkg to GitHub Packages

Installation

Copy and paste the following snippet into your .yml file.

- name: Push Nupkg to GitHub Packages
  uses: tanaka-takayoshi/nuget-publish-to-github-packages-action@v2.1
Learn more about this action in tanaka-takayoshi/nuget-publish-to-github-packages-action
Choose a version

Publish Nupkg to GitHub Packages

This cross-platform action publishes Nupkg to GitHub Packages. .NET Core CLI is required. The project-level nuget.config will be replaced by this action.

Inputs

nupkg-path

Required The path of the Nupkg file to publish.

repo-owner

Required The owner of GitHub Packages.

gh-user

Required The username of your account.

token

Required The token of your GitHub Packages.

skip-duplicate

Required Skip publishing duplicated package(s) if true. The default value is true.

Example usage

uses: tanaka-takayoshi/nuget-publish-to-github-packages-action@v2.1
with:
  nupkg-path:  './artifacts/*.nupkg'
  repo-owner:  'tanaka-takayoshi'
  gh-user:  'tanaka-takayoshi'
  token:  ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.