Skip to content

Commit f017318

Browse files
committed
build: Workflow for manually creating release
1 parent 730a4d1 commit f017318

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/create-github-release.yml

+6-5
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,16 @@
33
name: Create github release
44

55
on:
6-
push:
7-
tags:
8-
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
6+
workflow_dispatch:
97

108
jobs:
119
build:
1210
name: Create Release
1311
runs-on: ubuntu-latest
1412
steps:
13+
- name: Get latest version tag
14+
id: latest_version
15+
run: echo "VERSION=$(git tag --merged | sort -V | tail -1)" >> $GITHUB_OUTPUT
1516
- name: Checkout code
1617
uses: actions/checkout@v2
1718
with:
@@ -27,8 +28,8 @@ jobs:
2728
env:
2829
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
2930
with:
30-
tag_name: ${{ github.ref }}
31-
release_name: Release ${{ github.ref }}
31+
tag_name: ${{ steps.latest_version.outputs.VERSION }}
32+
release_name: Release ${{ steps.latest_version.outputs.VERSION }}
3233
body: |
3334
${{ steps.Changelog.outputs.changelog }}
3435
draft: false

0 commit comments

Comments
 (0)