Skip to content

kbrashears5/github-action-release-maker

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

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

github-action-release-maker

Github Action to create a release when triggered

version

Use Cases

Have releases be created automatically as part of your CI/CD, using your last commit message

Setup

Create a new file called /.github/workflows/release-maker.yml that looks like so:

name: Release Maker

on:
  repository_dispatch:
    types:
      - release

jobs:
  release_maker:
    runs-on: ubuntu-latest
    steps:
      - name: Release Maker
        uses: kbrashears5/github-action-release-maker@v1.0.3
        with:
          VERSION: ${{ github.event.client_payload.version }}
          TOKEN: ${{ secrets.ACTIONS }}

Parameters

Parameter Required Description
VERSION true Version name to give the release
TOKEN true Personal Access Token with Repo scope

Invoking

cURL

curl \
  -X POST \
  -H "Accept: application/vnd.github.v3+json" \
  -d '{"event_type":"release","client_payload":{"version":"v1.0.0"}}' \
  https://api.github.com/repos/{username}/{repo-name}/dispatches

Azure DevOps Pipeline

See my yaml templates on how to use.

This template will use the build number as the version of the package.

You'll need to create a variable group called github, with a secret variable called GITHUB_TOKEN, with a token with repo:public_repo scope. See my yaml example on how to use.