Skip to content

A small GitHub Action to upload build artifacts to releases.

Notifications You must be signed in to change notification settings

diamondburned/action-upload-release

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

action-upload-release

A small GitHub Action to upload build artifacts to releases.

Requirements

Read and write permissions are required. Enable them in the Actions tab of your repository settings.

Screenshot of the Workflow permissions section

Usage

.github/workflows/release.yml example:

name: Build and upload release

on:
  release:
    types: [published]

jobs:
  build:
    uses: ./.github/workflows/build.yml

  upload:
    needs: build
    runs-on: ubuntu-latest
    steps:
      - uses: actions/download-artifact@v3
        with:
          name: dist # build output
          path: ./dist

      # tar is needed if you have a folder.
      - run: tar -czvf dist.tar.gz dist

      - uses: diamondburned/action-upload-release@main
        with:
          files: dist.tar.gz

About

A small GitHub Action to upload build artifacts to releases.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages