{"id":14985967,"url":"https://github.com/jasonetco/upload-to-release","last_synced_at":"2025-07-21T03:02:40.431Z","repository":{"id":43791260,"uuid":"160370800","full_name":"JasonEtco/upload-to-release","owner":"JasonEtco","description":"A GitHub Action that uploads a file to a new release.","archived":false,"fork":false,"pushed_at":"2020-04-02T12:36:15.000Z","size":13,"stargazers_count":177,"open_issues_count":7,"forks_count":39,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-04T17:52:35.625Z","etag":null,"topics":["action","github-actions","release-automation","workflow"],"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/JasonEtco.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}},"created_at":"2018-12-04T14:33:04.000Z","updated_at":"2024-10-21T19:31:55.000Z","dependencies_parsed_at":"2022-09-01T14:51:54.781Z","dependency_job_id":null,"html_url":"https://github.com/JasonEtco/upload-to-release","commit_stats":{"total_commits":10,"total_committers":3,"mean_commits":"3.3333333333333335","dds":0.4,"last_synced_commit":"d648f1babf776de9cad881320bd9e9818fc3b262"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/JasonEtco/upload-to-release","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JasonEtco%2Fupload-to-release","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JasonEtco%2Fupload-to-release/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JasonEtco%2Fupload-to-release/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JasonEtco%2Fupload-to-release/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JasonEtco","download_url":"https://codeload.github.com/JasonEtco/upload-to-release/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JasonEtco%2Fupload-to-release/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266231762,"owners_count":23896473,"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-actions","release-automation","workflow"],"created_at":"2024-09-24T14:12:03.275Z","updated_at":"2025-07-21T03:02:40.386Z","avatar_url":"https://github.com/JasonEtco.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch3 align=\"center\"\u003eUpload to Release\u003c/h3\u003e\n\u003cp align=\"center\"\u003eA GitHub Action that uploads a file to a new release.\u003cp\u003e\n\n## Usage\n\nThis action uploads any file to a new release:\n\n\u003cimg width=\"926\" alt=\"image\" src=\"https://user-images.githubusercontent.com/10660468/49449109-2d37d400-f7a8-11e8-8e59-607c91520c96.png\"\u003e\n\nOne example workflow is to build and save a Docker image then upload it to a release:\n\n```yaml\n# .github/workflows/build-docker-image.yml\nname: build-docker-image\n\non: release\n\njobs:\n  build-docker-image:\n    name: Build and upload docker image\n    runs-on: ubuntu-latest\n    steps:\n      - name: Pull source\n        uses: actions/checkout@v1\n\n      - name: Build Docker image\n        uses: actions/docker/cli@master\n        with:\n          args: build . -t my-image\n\n      - name: Save the image\n        uses: actions/docker/cli@master\n        with:\n          args: save my-image:latest\n\n      - name: Upload to release\n        uses: JasonEtco/upload-to-release@master\n        with:\n          args: my-image.tar\n        env:\n          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n```\n\n## Requirements\n\nYou must pass at least one argument, the path to the file you want to attach. You must also include the `GITHUB_TOKEN` secret, otherwise uploading the file will not work.\n\n```yaml\n- name: Upload to release\n  uses: JasonEtco/upload-to-release@master\n  with:\n    args: my-image.tar\n  env:\n    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n```\n\n### Content-Type\n\nYou may also need to pass an additional argument, the `Content-Type` header used when uploading your file (this is `application/zip` by default):\n\n```yaml\n- name: Upload to release\n  uses: JasonEtco/upload-to-release@master\n  with:\n    args: my-image.tar application/zip\n  env:\n    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n```\n\n### Event type\n\nThe event type your workflow is triggered from is critical to the function of this action. If you are not using `on: release` for your workflow this action will not work correctly.\n\nThe event sent to the action by GitHub only contains an artifact upload URL when using the `release` event type to trigger the workflow.\n\nIf you need other workflows not based on the `release` event, you should use multiple workflow definitions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjasonetco%2Fupload-to-release","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjasonetco%2Fupload-to-release","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjasonetco%2Fupload-to-release/lists"}