{"id":16579985,"url":"https://github.com/tfausak/github-release","last_synced_at":"2025-04-06T06:09:19.597Z","repository":{"id":8402734,"uuid":"58267271","full_name":"tfausak/github-release","owner":"tfausak","description":":octocat: Upload files to GitHub releases.","archived":false,"fork":false,"pushed_at":"2025-02-02T02:16:40.000Z","size":124,"stargazers_count":102,"open_issues_count":0,"forks_count":7,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-03-30T05:05:34.081Z","etag":null,"topics":["github","haskell"],"latest_commit_sha":null,"homepage":"https://hackage.haskell.org/package/github-release","language":"Haskell","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/tfausak.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","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":"2016-05-07T13:32:19.000Z","updated_at":"2025-02-02T02:16:43.000Z","dependencies_parsed_at":"2023-01-11T17:23:08.649Z","dependency_job_id":"5f62696a-3710-4793-8b12-771be1b2605e","html_url":"https://github.com/tfausak/github-release","commit_stats":null,"previous_names":[],"tags_count":57,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tfausak%2Fgithub-release","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tfausak%2Fgithub-release/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tfausak%2Fgithub-release/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tfausak%2Fgithub-release/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tfausak","download_url":"https://codeload.github.com/tfausak/github-release/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247441052,"owners_count":20939239,"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":["github","haskell"],"created_at":"2024-10-11T22:19:46.765Z","updated_at":"2025-04-06T06:09:19.571Z","avatar_url":"https://github.com/tfausak.png","language":"Haskell","readme":"# [GitHub Release][]\n\n[![CI](https://github.com/tfausak/github-release/actions/workflows/ci.yml/badge.svg)](https://github.com/tfausak/github-release/actions/workflows/ci.yml)\n[![Hackage](https://badgen.net/hackage/v/github-release)](https://hackage.haskell.org/package/github-release)\n\nGitHub Release is a command-line utility for uploading files to GitHub\nreleases.\n\nOnce you've got it, run it like so:\n\n``` sh\ngithub-release upload \\\n  --token '...' \\\n  --owner 'someone' \\\n  --repo 'something' \\\n  --tag 'v1.2.3' \\\n  --file 'path/to/example.tgz' \\\n  --name 'example-1.2.3.tgz'\n```\n\nYou can generate a token on the [personal access tokens][] page of your\npersonal settings. The `file` option is the path to the local file you want to\nupload. The `name` option is what the file should be called on the GitHub\nrelease.\n\nGitHub Release is written in Haskell. If you want to build it yourself or use\nit in your project, you'll want to get [Stack][]. Once you've done that, you\ncan install and use it from the command line.\n\n``` sh\nstack --resolver nightly install github-release\nstack exec -- github-release upload # as above ...\n```\n\nOr you can use it from Haskell.\n\n``` hs\nimport qualified GitHubRelease\nGitHubRelease.upload\n    \"...\"                 -- token\n    \"someone\"             -- owner\n    \"something\"           -- repo\n    \"1.2.3\"               -- tag\n    \"path/to/example.tgz\" -- file\n    \"example-1.2.3.tgz\"   -- name\n```\n\nInspired by \u003chttps://github.com/aktau/github-release\u003e.\n\n[GitHub Release]: https://github.com/tfausak/github-release\n[the latest release]: https://github.com/tfausak/github-release/releases/latest\n[personal access tokens]: https://github.com/settings/tokens\n[Stack]: http://docs.haskellstack.org/en/stable/README/\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftfausak%2Fgithub-release","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftfausak%2Fgithub-release","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftfausak%2Fgithub-release/lists"}