Skip to content

Hs1r1us/release-creator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

release-creator 📌

This action allows you to create a Github release dynamically.

Table of Contents

Usage 📈

name: Release Creator

on:
  push:
    branches:
      - master

jobs:
  update:
    runs-on: ubuntu-latest
    name: Create a release
    steps:
      - uses: alice-biometrics/release-creator/@v1.0.4
        with:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          version: 'v2.0.0'
          description: 'This is an awesome version :ok_hand:'

Parameters ⚙️

You can configure additional info with the following parameters:

Param. Required Definition
GITHUB_TOKEN true GitHub token
version true New release version. If your action was generated by a release you can use inherit this will get version automatically
description true New release description. If your action was generated by a release you can use inherit this will get version automatically
repo optional Destination repo. Default value (this) will use current repository
branch optional Destination branch repo. Default value (master)
draft optional Define if is a draft or not. Use "true" or "false"
prerelease optional Define if is a prerelease or not. Use "true" or "false"

example:

name: Release Creator

on:
  push:
    branches:
      - master

jobs:
  update:
    runs-on: ubuntu-latest
    name: Create a release
    steps:
      - uses: alice-biometrics/release-creator/@v1.0.4
        with:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          version: 'v1.0.0'
          description: 'This is an awesome version :ok_hand:'
          repo: 'alice-biometrics/github-releaser'
          branch: 'master'
          draft: 'false'
          prerelease: 'false'

or if you execute the action on release:

Use Cases 👀

Duplicate Release Notes

Image you have a private repo where you develop your SDK. Additionally, you've made publicly available a Repo with some documentation about your SDK module.

Use release-creator if you want to copy releases notes from one repo to another with:

From release-creator-example-lib ➡️ release-creator-example

name: Release Creator

on:
  release:
    types: [published]

jobs:
  update:
    runs-on: ubuntu-latest
    name: Create a release
    steps:
      - uses: alice-biometrics/release-creator/@v1.0.4
        with:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          version: 'inherit'
          description: 'inherit'
          repo: 'alice-biometrics/release-creator-example'

License 📄

MIT

Contact 📬

[email protected]

About

:octocat: Action to automate Github Release Creation

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 97.3%
  • Dockerfile 2.7%