generated from LizardByte/template-base
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add usage examples to readme (#10)
- Loading branch information
1 parent
35734a9
commit 34b33ac
Showing
3 changed files
with
42 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,41 @@ | ||
# create-release-action | ||
[![GitHub Workflow Status (CI)](https://img.shields.io/github/actions/workflow/status/lizardbyte/create-release-action/ci.yml.svg?branch=master&label=CI%20build&logo=github&style=for-the-badge)](https://github.com/LizardByte/create-release-action/actions/workflows/ci.yml?query=branch%3Amaster) | ||
|
||
A reusable action to create a GitHub release. This action is tailored to the | ||
@LizardByte organization, but can be used by anyone if they follow the same conventions. | ||
|
||
This is basically a wrapper around [ncipollo/release-action](https://github.com/ncipollo/release-action), with some | ||
different defaults to make it easier to use within the @LizardByte organization. | ||
|
||
## Basic Usage | ||
|
||
See [action.yml](action.yml) | ||
|
||
```yaml | ||
steps: | ||
- name: Create Release | ||
uses: LizardByte/create-release-action@master | ||
with: | ||
name: v0.1.0 | ||
tag: v0.1.0 | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
``` | ||
## Inputs | ||
| Name | Description | Default | Required | | ||
|----------------------|--------------------------------------------------------------------------------------|-----------------|----------| | ||
| allowUpdates | An optional flag which indicates if we should update a release if it already exists. | `true` | `false` | | ||
| artifacts | The artifacts to upload. | `*artifacts/*` | `false` | | ||
| body | The body of the release. | | `false` | | ||
| discussionCategory | The category for the discussion. | `announcements` | `false` | | ||
| generateReleaseNotes | Indicates if release notes should be automatically generated. | `false` | `false` | | ||
| name | The version to create. | | `true` | | ||
| prerelease | Whether the release is a prerelease. | `false` | `false` | | ||
| tag | The tag to create. | | `true` | | ||
| token | GitHub Token. | | `true` | | ||
|
||
## See Also | ||
|
||
This action is meant to be used in conjunction with | ||
[LizardByte/setup-release-action](https://github.com/LizardByte/setup-release-action). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters