-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update create-release GitHub workflow to the distributed version
- Loading branch information
Showing
1 changed file
with
17 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,25 @@ | ||
################################################### | ||
# Create a GitHub Release when a tag is pushed. | ||
# | ||
# @notice You must enable write permissions for this action to work. | ||
# 1. GitHub Settings | ||
# 2. Actions | ||
# 3. General | ||
# 4. Workflow permissions | ||
# 5. Enable "read and write permissions" | ||
# | ||
# @version 3.0.0 | ||
# | ||
################################################### | ||
|
||
name: Create GitHub Release | ||
run-name: Create release for ${{ github.ref }} on GitHub. | ||
env: | ||
VERSION: 1.0.0 | ||
run-name: Create release for ${{ github.ref_name }} on GitHub. | ||
|
||
on: | ||
push: | ||
tags-ignore: | ||
- "*beta*" | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@master | ||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@latest | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: Version ${{ github.ref }} | ||
draft: false | ||
prerelease: false | ||
create-release: | ||
uses: lipemat/public-actions/.github/workflows/create-release.yml@version/1 |