Skip to content

Commit

Permalink
Update create-release GitHub workflow to the distributed version
Browse files Browse the repository at this point in the history
  • Loading branch information
lipemat committed Oct 31, 2024
1 parent b0a8db8 commit 04f337a
Showing 1 changed file with 17 additions and 18 deletions.
35 changes: 17 additions & 18 deletions .github/workflows/create-release.yml
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

0 comments on commit 04f337a

Please sign in to comment.