Skip to content

tomaspre/github-upload-release-artifacts-action

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Action for Uploading Release Artifacts

This action will upload all paths passed as arguments as artifacts to an existing release. This action should be triggered with a tag after a release for this tag has been created.

Arguments can either be file or directory paths, for directories all contained files will be uploaded.

Usage

A sample workflow would be:

on: push
name: Build & Release
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@master
    - name: build
      run: |
        ./build.sh
  release:
    runs-on: ubuntu-latest
    needs: [build]
    steps:
    - uses: actions/checkout@master
    - name: Create release
      uses: Roang-zero1/github-create-release-action@master
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    - name: Create GitHub release
      uses: linuxgemini/github-upload-release-artifacts-action@master
      with:
        args: "dist/bin/ dist/shell/compiled.sh"
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Secrets

  • GITHUB_TOKEN Provided by the GitHub action

Acknowledgments

Idea based on fnkr/github-action-ghr

About

Upload artifacts to a GitHub release

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 67.6%
  • Dockerfile 32.4%