{"id":19905624,"url":"https://github.com/ekristen/gitlab-release","last_synced_at":"2025-09-25T04:31:51.307Z","repository":{"id":139003299,"uuid":"171558800","full_name":"ekristen/gitlab-release","owner":"ekristen","description":"Publish Assets to GitLab Release from GitLab CI - This is a MIRROR","archived":false,"fork":false,"pushed_at":"2020-09-11T12:55:18.000Z","size":4,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-13T07:47:01.788Z","etag":null,"topics":["git-mirror","gitlab","gitlab-ci","release","release-automation"],"latest_commit_sha":null,"homepage":"https://gitlab.com/ekristen/gitlab-release","language":"Shell","has_issues":false,"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/ekristen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2019-02-19T22:16:58.000Z","updated_at":"2023-10-19T01:50:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"26e6c810-7f9c-4333-8036-39d2b3f00476","html_url":"https://github.com/ekristen/gitlab-release","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekristen%2Fgitlab-release","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekristen%2Fgitlab-release/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekristen%2Fgitlab-release/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekristen%2Fgitlab-release/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ekristen","download_url":"https://codeload.github.com/ekristen/gitlab-release/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234152702,"owners_count":18787672,"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":["git-mirror","gitlab","gitlab-ci","release","release-automation"],"created_at":"2024-11-12T20:34:03.857Z","updated_at":"2025-09-25T04:31:45.966Z","avatar_url":"https://github.com/ekristen.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"**IMPORTANT:** If you are viewing this on GitHub, you are viewing a mirror of the [GitLab project](https://gitlab.com/ekristen/gitlab-release).\n\n# GitLab Release\n\nThis is a simple bash script designed to run in GitLab CI when tags are pushed to a project to create a release if it does not exist and upload files against the release.\n\n## Overview\n\nThe idea is very simple, specify a path where release files are located (via `GR_RELEASE_PATH` env var ) that need to be uploaded against a release. Then define a publish files/binaries job in your `.gitlab-ci.yml` file and sit back and watch your release assets get published automatically when you push a tag.\n\n## Caveats\n\nUnfortunately the `CI_JOB_TOKEN` does not have enough privileges at this time to allow upload of assets or to create a release, so you will need to specify one from an account that has high privileges via the `GR_TOKEN` env var in your GitLab CI/CD Settings for the Project or Group that the project belongs to.\n\n## Usage\n\nThis is designed to be run as a docker container with GitLab CI. \n\n### GitLab CI Example Job\n\n```\npublish:binaries:\n  stage: publish\n  image: ekristen/gitlab-release:latest\n  dependencies:\n    - some-previous-job-that-has-artifacts\n  variables:\n    GIT_STRATEGY: none\n  script:\n    - gitlab-release\n  only:\n    refs:\n      - tags\n```\n\n### Development\n\nYou can mimic the GitLab CI environment by ensuring all the necessary env vars are set. Specifically `GR_TOKEN`, `CI_PROJECT_ID` and `CI_COMMIT_TAG`. If you wish to debug the script, simply set `DEBUG` to any value.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fekristen%2Fgitlab-release","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fekristen%2Fgitlab-release","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fekristen%2Fgitlab-release/lists"}