{"id":22901140,"url":"https://github.com/cloudnode-pro/release-upload-asset","last_synced_at":"2026-04-27T09:03:32.461Z","repository":{"id":267191846,"uuid":"900330862","full_name":"cloudnode-pro/release-upload-asset","owner":"cloudnode-pro","description":"Upload files to a GitHub release","archived":false,"fork":false,"pushed_at":"2026-04-21T03:01:54.000Z","size":203,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-04-21T05:10:25.487Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cloudnode-pro.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","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":"2024-12-08T14:03:16.000Z","updated_at":"2026-04-21T03:01:56.000Z","dependencies_parsed_at":"2024-12-09T00:22:13.258Z","dependency_job_id":"74935b03-3075-4a09-bb7b-05243c35056a","html_url":"https://github.com/cloudnode-pro/release-upload-asset","commit_stats":null,"previous_names":["cloudnode-pro/release-upload-asset"],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/cloudnode-pro/release-upload-asset","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudnode-pro%2Frelease-upload-asset","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudnode-pro%2Frelease-upload-asset/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudnode-pro%2Frelease-upload-asset/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudnode-pro%2Frelease-upload-asset/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloudnode-pro","download_url":"https://codeload.github.com/cloudnode-pro/release-upload-asset/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudnode-pro%2Frelease-upload-asset/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32329467,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"online","status_checked_at":"2026-04-27T02:00:06.769Z","response_time":128,"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":[],"created_at":"2024-12-14T01:31:57.753Z","updated_at":"2026-04-27T09:03:32.442Z","avatar_url":"https://github.com/cloudnode-pro.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Release: Upload Asset\n\nUpload files to a GitHub release.\n\n## Example Usage\n\n```yaml\n# …\njobs:\n  publish:\n    # …\n    permissions:\n      contents: write\n    # …\n    steps:\n      # …\n      - name: Upload to release\n        uses: cloudnode-pro/release-upload-asset@v1\n        with:\n          # See the ‘Inputs’ section below for details.\n          gh-token: ${{ github.token }}\n          release-id: 123456 # Optional for `release` events.\n          files: |\n            path/to/file.txt; type=text/plain; name=File1.txt\n            path/to/foo/bar.baz; if=${{ github.event_name == 'release' }}\n```\n\n## Inputs\n\n### `gh-token`\n\nThe GitHub token to use for authentication.\n\nIf you are uploading to a release in the same repository, you can use `${{github.token}}`, which is a secret\ngenerated by the workflow. Otherwise, you need to manually create a token, save it as a repository secret, and pass it\nusing `${{secrets.NAME_OF_SECRET}}`.\n\n### `release-id`\n\nThe ID of the release to which to upload files.\n\nThis is optional for `release` events, in which case the ID can be inferred (if left unset) from the release that\ntriggered the workflow.\n\n### `files`\n\nPaths to the files to upload. Separated by newline.\n\nAfter the file path, you can add parameters separated by semicolons.\n\nThe recognised parameters are:\n\n\u003cdl\u003e\n    \u003cdt\u003e\u003ccode\u003etype\u003c/code\u003e\u003c/dt\u003e\n    \u003cdd\u003eThe MIME type of the file. Defaults to \u003ccode\u003eapplication/octet-stream\u003c/code\u003e.\n    \u003cdt\u003e\u003ccode\u003ename\u003c/code\u003e\u003c/dt\u003e\n    \u003cdd\u003eThe name of the file. Defaults to the basename of the file path.\u003c/dd\u003e\n    \u003cdt\u003e\u003ccode\u003eif\u003c/code\u003e\u003c/dt\u003e\n    \u003cdd\u003eWhether to actually upload this file. You can use this in combination with\n        \u003ca href=\"https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/evaluate-expressions-in-workflows-and-actions\"\u003eGitHub expressions\u003c/a\u003e.\n        The allowed values are \u003ccode\u003etrue\u003c/code\u003e and \u003ccode\u003efalse\u003c/code\u003e. Defaults to \u003ccode\u003etrue\u003c/code\u003e.\n\u003c/dd\u003e\n\u003c/dl\u003e\n\nExamples:\n\n```yaml\nfiles: |-\n  /path/to/file1.txt\n  /path/to/file2.txt; type=text/plain; name=Named File.txt\n  /path/to/file3.txt; if=${{ 'foo' == 'bar' }}\n```\n\n### Permissions\n\nUploading release assets requires the `contents: write`.\n\nSee: [Controlling permissions for GITHUB_TOKEN](https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/controlling-permissions-for-github_token)\n\nExample:\n\n```yaml\npermissions:\n  contents: write\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudnode-pro%2Frelease-upload-asset","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloudnode-pro%2Frelease-upload-asset","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudnode-pro%2Frelease-upload-asset/lists"}