All Projects → JasonEtco → Upload To Release

JasonEtco / Upload To Release

Licence: mit
A GitHub Action that uploads a file to a new release.

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to Upload To Release

Action Download Artifact
⚙️ A GitHub Action to download an artifact associated with given workflow and commit or other criteria
Stars: ✭ 107 (-25.69%)
Mutual labels:  action, workflow
action-sync-node-meta
GitHub Action that syncs package.json with the repository metadata.
Stars: ✭ 25 (-82.64%)
Mutual labels:  workflow, action
release-changelog-builder-action
A GitHub action that builds your release notes / changelog fast, easy and exactly the way you want.
Stars: ✭ 515 (+257.64%)
Mutual labels:  action, release-automation
Gh Action Pypi Publish
GitHub Action, for publishing distribution files to PyPI
Stars: ✭ 317 (+120.14%)
Mutual labels:  release-automation, workflow
Release Drafter
Drafts your next release notes as pull requests are merged into master.
Stars: ✭ 2,119 (+1371.53%)
Mutual labels:  action, release-automation
Ssh Agent
GitHub Action to setup `ssh-agent` with a private key
Stars: ✭ 365 (+153.47%)
Mutual labels:  action, workflow
Compressed Size Action
GitHub Action that adds compressed size changes to your PRs.
Stars: ✭ 300 (+108.33%)
Mutual labels:  action, workflow
Processjs
Stars: ✭ 48 (-66.67%)
Mutual labels:  action, workflow
Zoo
🌈 Cute pet zoo. Come and adopt a cute you like. 萌萌乐园,全自动领养自己喜欢的萌物。
Stars: ✭ 121 (-15.97%)
Mutual labels:  action, workflow
Action Automatic Releases
READONLY: Auto-generated mirror for https://github.com/marvinpinto/actions/tree/master/packages/automatic-releases
Stars: ✭ 127 (-11.81%)
Mutual labels:  release-automation
Alfred
My Alfred Theme And Workflow
Stars: ✭ 135 (-6.25%)
Mutual labels:  workflow
Petri flow
Petri Net Workflow Engine for Ruby.
Stars: ✭ 127 (-11.81%)
Mutual labels:  workflow
Tipdm
TipDM建模平台,开源的数据挖掘工具。
Stars: ✭ 130 (-9.72%)
Mutual labels:  workflow
Github Action Markdown Link Check
Check all links in markdown files if they are alive or dead. 🔗✔️
Stars: ✭ 132 (-8.33%)
Mutual labels:  action
Laravel Handlers
Request handlers for Laravel
Stars: ✭ 128 (-11.11%)
Mutual labels:  action
Pr Size Labeler
🏷 Visualize and optionally limit the size of your Pull Requests
Stars: ✭ 140 (-2.78%)
Mutual labels:  action
Grunt Drupal Tasks
Grunt-based build and testing tasks for Drupal
Stars: ✭ 125 (-13.19%)
Mutual labels:  workflow
Workflowserver
Workflow Server is a ready-to-use Workflow Engine-based application that you can deploy into your infrastructure. It can be integrated with NodeJS, PHP, Ruby, .NET, or Java applications via a REST API. Workflow Server is a key component for managing the lifecycle of business objects within your enterprise.
Stars: ✭ 124 (-13.89%)
Mutual labels:  workflow
Precommit
pre-commit hooks for R projects
Stars: ✭ 141 (-2.08%)
Mutual labels:  workflow
Redux Dataloader
Loads async data for Redux apps focusing on preventing duplicated requests and dealing with async dependencies.
Stars: ✭ 139 (-3.47%)
Mutual labels:  action

Upload to Release

A GitHub Action that uploads a file to a new release.

Usage

This action uploads any file to a new release:

image

One example workflow is to build and save a Docker image then upload it to a release:

# .github/workflows/build-docker-image.yml
name: build-docker-image

on: release

jobs:
  build-docker-image:
    name: Build and upload docker image
    runs-on: ubuntu-latest
    steps:
      - name: Pull source
        uses: actions/[email protected]

      - name: Build Docker image
        uses: actions/docker/[email protected]
        with:
          args: build . -t my-image

      - name: Save the image
        uses: actions/docker/[email protected]
        with:
          args: save my-image:latest

      - name: Upload to release
        uses: JasonEtco/[email protected]
        with:
          args: my-image.tar
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Requirements

You 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.

- name: Upload to release
  uses: JasonEtco/[email protected]
  with:
    args: my-image.tar
  env:
    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Content-Type

You may also need to pass an additional argument, the Content-Type header used when uploading your file (this is application/zip by default):

- name: Upload to release
  uses: JasonEtco/[email protected]
  with:
    args: my-image.tar application/zip
  env:
    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Event type

The 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.

The event sent to the action by GitHub only contains an artifact upload URL when using the release event type to trigger the workflow.

If you need other workflows not based on the release event, you should use multiple workflow definitions.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].