Skip to content

Upload multiple releases from your build directory to Github Releases

License

Notifications You must be signed in to change notification settings

SourceSprint/upload-multiple-releases

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

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Upload Multiple Releases

This Action uploads multiple assets from your build directory to Github Releases

Example

This is an example tailored for uploaded assets for a compiled NodeJS application.

on:
  push:
    # Sequence of patterns matched against refs/tags
    tags:
      - "v*" # Push events to matching v*, i.e. v1.0, v20.15.10

name: Upload Release Asset

jobs:
  build:
    name: Upload Release Asset
    runs-on: ubuntu-latest
    steps:
      - name: Checkout code
        uses: actions/checkout@v2

      - name: Build project
        run: |
          npm install
          npm run compile

      - name: "Fetch tags"
        id: fetch-tags
        uses: actions/github-script@v2
        with:
          script: |
            return require(`${process.env.GITHUB_WORKSPACE}/package.json`).version
          result-encoding: string

      - name: Upload release binaries
        uses: boxpositron/upload-multiple-releases@1.0.6
        env:
          GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
        with:
          release_config: |
            lib/*macos
            lib/*linux
            lib/*.exe
            lib/*.yml
            lib/*.zip
          tag_name: v${{ steps.fetch-tags.outputs.result }}
          release_name: ${{ steps.fetch-tags.outputs.result }}
          draft: false
          prerelease: false
          overwrite: true

About

Upload multiple releases from your build directory to Github Releases

Resources

License

Stars

Watchers

Forks

Packages

No packages published