{"id":14064026,"url":"https://github.com/natescherer/publish-powershell-action","last_synced_at":"2025-07-29T17:31:38.827Z","repository":{"id":61888876,"uuid":"353761742","full_name":"natescherer/publish-powershell-action","owner":"natescherer","description":"A GitHub Action to publish a PowerShell module or script to GitHub Packages, a NuGet repository, or the PowerShell Gallery.","archived":false,"fork":false,"pushed_at":"2024-02-18T23:53:21.000Z","size":109,"stargazers_count":9,"open_issues_count":9,"forks_count":4,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-05-22T22:35:03.087Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/natescherer.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-04-01T16:30:18.000Z","updated_at":"2024-08-13T07:06:04.254Z","dependencies_parsed_at":"2024-08-13T07:18:43.104Z","dependency_job_id":null,"html_url":"https://github.com/natescherer/publish-powershell-action","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natescherer%2Fpublish-powershell-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natescherer%2Fpublish-powershell-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natescherer%2Fpublish-powershell-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natescherer%2Fpublish-powershell-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/natescherer","download_url":"https://codeload.github.com/natescherer/publish-powershell-action/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228032922,"owners_count":17858917,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-08-13T07:03:38.144Z","updated_at":"2024-12-04T02:31:02.139Z","avatar_url":"https://github.com/natescherer.png","language":"PowerShell","funding_links":[],"categories":["PowerShell"],"sub_categories":[],"readme":"# Publish PowerShell GitHub Action\n\n[![PowerShell on Windows](https://raw.githubusercontent.com/gist/natescherer/13d7121be73557627d3908f6e5559d9f/raw/4f7747f24063595a285dd33192fe1fd57fe60dee/publish-powershell-action_TestResults_Windows.md_badge.svg)](https://gist.github.com/natescherer/13d7121be73557627d3908f6e5559d9f) [![PowerShell on Linux](https://raw.githubusercontent.com/gist/natescherer/7006cea198e1726f203cde5604179d4b/raw/9aed4cd805da75c33a98968f9980f70fd7a6f7c9/publish-powershell-action_TestResults_Linux.md_badge.svg)](https://gist.github.com/natescherer/7006cea198e1726f203cde5604179d4b) [![PowerShell on macOS](https://raw.githubusercontent.com/gist/natescherer/cbc42445c9b9161db9d83db09927a66c/raw/4e43ee59dd608716106e1b3abbdf7b933b95980a/publish-powershell-action_TestResults_macOS.md_badge.svg)](https://gist.github.com/natescherer/cbc42445c9b9161db9d83db09927a66c)\n\u003c!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section --\u003e\n[![All Contributors](https://img.shields.io/badge/all_contributors-2-orange.svg?style=flat-square)](#contributors-)\n\u003c!-- ALL-CONTRIBUTORS-BADGE:END --\u003e\n\nA GitHub Action to publish a PowerShell module or script to GitHub Packages, a NuGet repository, or the PowerShell Gallery.\n\nIt is tested and runs on `windows-latest`, `ubuntu-latest`, and `macos-latest`.\n\n## Usage\n\n```yaml\n    steps:\n      - name: Publish PowerShell Module\n        uses: natescherer/publish-powershell-action@v1\n        with:\n          token: ${{ secrets.GITHUB_TOKEN }}\n          target: packages\n          path: src\n```\n\n```yaml\n    steps:\n      - name: Publish PowerShell Module\n        uses: natescherer/publish-powershell-action@v1\n        with:\n          token: ${{ secrets.NUGET_TOKEN }}\n          target: nuget\n          path: src\n```\n\n```yaml\n    steps:\n      - name: Publish PowerShell Module\n        uses: natescherer/publish-powershell-action@v1\n        with:\n          token: ${{ secrets.GALLERY_API_KEY }}\n          target: gallery\n          path: src\n```\n\n### Inputs\n\n\u003c!--(inputs-start)--\u003e\n\n| Name  | Required | Default | Description |\n| :---: | :------: | :-----: | ----------- |\n| `token` | true |  | Token to authenticate. |\n| `target` | true |  | Set to `packages` for GitHub Packages, `gallery` for the PowerShell Gallery, or `nuget` for a NuGet repository. |\n| `path` | true |  | Path to publish relative to the root of the project. Can either be a .psd1 file, a .ps1 file, or a directory. If a directory, the action will search for a .psd1 file in the root. If none are found, it will then \u003cbr\u003esearch for a .ps1 file in the root. |\n| `nugetUrl` | false |  | Url to use with NuGet target. Should be a NuGet v2 or v3 endpoint. |\n\n\u003c!--(inputs-end)--\u003e\n\n### Outputs\n\n\u003c!--(outputs-start)--\u003e\n\n| Name  | Description |\n| :---: | ----------- |\n|  |\n\n\u003c!--(outputs-end)--\u003e\n\n## Contributors\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- prettier-ignore-start --\u003e\n\u003c!-- markdownlint-disable --\u003e\n\u003ctable\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://www.linkedin.com/in/natescherer01/\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/376408?v=4?s=100\" width=\"100px;\" alt=\"Nate Scherer\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eNate Scherer\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/natescherer/publish-powershell-action/commits?author=natescherer\" title=\"Code\"\u003e💻\u003c/a\u003e \u003ca href=\"https://github.com/natescherer/publish-powershell-action/commits?author=natescherer\" title=\"Documentation\"\u003e📖\u003c/a\u003e \u003ca href=\"#infra-natescherer\" title=\"Infrastructure (Hosting, Build-Tools, etc)\"\u003e🚇\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://github.com/Galvill\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/35693270?v=4?s=100\" width=\"100px;\" alt=\"Gal Villaret\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eGal Villaret\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/natescherer/publish-powershell-action/commits?author=Galvill\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n  \u003c/tbody\u003e\n\u003c/table\u003e\n\n\u003c!-- markdownlint-restore --\u003e\n\u003c!-- prettier-ignore-end --\u003e\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n\nThis project follows the [all-contributors](https://allcontributors.org) specification.\nContributions of any kind are welcome!\n\n## License\n\nThis project is licensed under The MIT License - see [LICENSE](LICENSE) for details.\n\n## Acknowledgements\n\n[![Hosted By: Cloudsmith](https://img.shields.io/badge/OSS%20hosting%20by-cloudsmith-blue?logo=cloudsmith\u0026style=flat-square)](https://cloudsmith.com)\n\nPackage repository hosting is graciously provided by Cloudsmith.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnatescherer%2Fpublish-powershell-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnatescherer%2Fpublish-powershell-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnatescherer%2Fpublish-powershell-action/lists"}