{"id":14985972,"url":"https://github.com/elgohr/github-release-action","last_synced_at":"2025-05-16T04:04:48.125Z","repository":{"id":36778057,"uuid":"178710662","full_name":"elgohr/Github-Release-Action","owner":"elgohr","description":"Publish Github releases in an action","archived":false,"fork":false,"pushed_at":"2025-05-06T03:37:45.000Z","size":134,"stargazers_count":201,"open_issues_count":1,"forks_count":57,"subscribers_count":12,"default_branch":"main","last_synced_at":"2025-05-06T04:30:27.394Z","etag":null,"topics":["action","github","publish","publishing","release"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/elgohr.png","metadata":{"files":{"readme":"README.md","changelog":null,"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,"zenodo":null}},"created_at":"2019-03-31T16:05:26.000Z","updated_at":"2025-05-06T03:37:42.000Z","dependencies_parsed_at":"2025-05-06T04:37:16.517Z","dependency_job_id":null,"html_url":"https://github.com/elgohr/Github-Release-Action","commit_stats":{"total_commits":58,"total_committers":11,"mean_commits":"5.2727272727272725","dds":0.7068965517241379,"last_synced_commit":"729911f8c5f0f9deac538484505ddc198ee61d85"},"previous_names":[],"tags_count":325,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elgohr%2FGithub-Release-Action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elgohr%2FGithub-Release-Action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elgohr%2FGithub-Release-Action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elgohr%2FGithub-Release-Action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elgohr","download_url":"https://codeload.github.com/elgohr/Github-Release-Action/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254464895,"owners_count":22075570,"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":["action","github","publish","publishing","release"],"created_at":"2024-09-24T14:12:03.963Z","updated_at":"2025-05-16T04:04:48.102Z","avatar_url":"https://github.com/elgohr.png","language":"Shell","readme":"# Github-Release-Action\n\n[![Actions Status](https://github.com/elgohr/Github-Release-Action/workflows/Release/badge.svg)](https://github.com/elgohr/Github-Release-Action/actions)\n\nCreates a plain Github release, without attaching assets or source code.\n\n## Usage\n\n```yaml\nname: Publish Release\non:\n  push:\n    tags:\n      - 'v*'\njobs:\n  build:\n    runs-on: ubuntu-latest\n    steps:\n    - uses: actions/checkout@v3\n    - name: Create a Release\n      uses: elgohr/Github-Release-Action@v5\n      env:\n        GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n      with:\n        title: MyReleaseMessage\n```\n\n## Mandatory Arguments\n\n### title\n`title` is a message which should appear in the release. May contain spaces.\n\n## Optional Arguments\n\n### workdir\n`workdir` can be used to specify a directory that contains the repository to be published.  \n\n```yaml\nwith:\n  title: MyReleaseMessage\n  workdir: myDirectoryName\n```\n\n### tag\n`tag` can be used to set the tag of the release.  \n\n```yaml\nwith:\n  title: MyReleaseMessage\n  tag: MyTag\n```\n\n### prerelease\n`prerelease` is used to publish a prerelease.  \n\n```yaml\nwith:\n  title: MyReleaseMessage\n  prerelease: true\n```\n\n## Notes\n\n`${{ secrets.GITHUB_TOKEN }}` can be used for publishing, if you configure the correct permissions.\n\nThis can be done by giving the Github token _all_ permissions (referred to as \"Read and write permission\") with the setting below available in Settings \u003e Actions \u003e General  \n![Screenshot of permission setting](permissions.png)\nOR alternatively it can be achieved via adding\n\n```yaml\npermissions:\n  packages: write\n  contents: write\n```\n\nto the concrete job creating the release. For more details see the [documentation on token permissions.](https://docs.github.com/en/actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token)\n\n### GitHub Enterprise\n\nTo publish your release to self-hosted GitHub Enterprise, include `GH_ENTERPRISE_TOKEN` and `GH_HOST` as environment variables.  \nFor example:\n\n```yaml\n      - name: Create Release\n        if: ${{ github.event.inputs.create_release }}\n        uses: elgohr/Github-Release-Action@v5\n        env:\n          GH_ENTERPRISE_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n          GH_HOST: yourgithub.company.com\n        with:\n          title: \"New release\"\n          tag: \"v1.0.1\"\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felgohr%2Fgithub-release-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felgohr%2Fgithub-release-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felgohr%2Fgithub-release-action/lists"}