Skip to content

Commit

Permalink
Update release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
macropin committed Jul 31, 2024
1 parent bb97649 commit 49e5e3c
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/github-release.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
# Source: https://github.com/panubo/reference-github-actions/blob/master/github-release.yml
# Source: https://github.com/panubo/reference-github-actions/blob/main/github-release.yml
# Description: Create a GitHub release
# LICENSE: MIT License, Copyright (c) 2021-2024 Volt Grid Pty Ltd t/a Panubo

name: GitHub Release

on:
push:
tags:
- '*'

name: GitHub Release
- 'v*'

jobs:
build:
Expand All @@ -14,9 +16,9 @@ jobs:
steps:

- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-depth: 0 # Required for git log to work

- name: Get Release Notes
id: get_release_notes
Expand All @@ -26,7 +28,7 @@ jobs:
NOTES="${NOTES//$'\n'/'%0A'}"
NOTES="${NOTES//$'\r'/'%0D'}"
echo "NOTES: ${NOTES}"
echo "::set-output name=notes::${NOTES}"
echo "notes=${NOTES}" >> $GITHUB_OUTPUT
- name: Create Release
id: create_release
Expand All @@ -41,5 +43,5 @@ jobs:
${{ steps.get_release_notes.outputs.notes }}
draft: true
draft: false
prerelease: false

0 comments on commit 49e5e3c

Please sign in to comment.