Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
package

GitHub Action

Upload Release Assets

0.2.3

Upload Release Assets

package

Upload Release Assets

Upload release assets to an existing release in your repository, including glob support

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Upload Release Assets

uses: alexellis/upload-assets@0.2.3

Learn more about this action in alexellis/upload-assets

Choose a version

upload-assets

GitHub Action to upload multiple assets to a release

Features

This action aims to resolve several outstanding user requests with @actions/upload-release-asset.

  • Getting the latest release tag for upload
  • Globbing i.e. ./bin/*
  • Succinct - no need to populate content_type and a separate path input

Input variables

You must provide:

  • asset_paths - the paths to the assets you want to upload as a JSON array. You can use a glob pattern. For example asset_paths: '["bin/*", "dist/js/*"]'

Output variables

  • browser_download_urls - the paths to download the uploaded assets

Example

name: publish

on:
  push:
    tags:
      - '*'

jobs:
  publish:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@master
        with:
          fetch-depth: 1
      - name: Make all
        run: make all
      - name: Upload release binaries
        uses: alexellis/upload-assets@0.2.2
        env:
          GITHUB_TOKEN: ${{ github.token }}
        with:
          asset_paths: '["./bin/release-it*"]'

Example taken from this sample project.

Creating a new version

Getting started:

npm i -g  @vercel/ncc

Build:

npm i
npm run build

License

MIT