mirror of
https://gitee.com/log4j/pig-ui.git
synced 2024-12-23 05:40:20 +08:00
👷 add github-release.yml workflow
This commit is contained in:
parent
23d418578e
commit
498be580e1
34
.github/workflows/github-release.yml
vendored
Normal file
34
.github/workflows/github-release.yml
vendored
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
name: publish github release
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
releaseversion:
|
||||||
|
description: 'Release version'
|
||||||
|
required: true
|
||||||
|
default: '3.7.0'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
publish-github-release:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: Generate changelog
|
||||||
|
id: changelog
|
||||||
|
uses: metcalfc/changelog-generator@v4.3.1
|
||||||
|
with:
|
||||||
|
myToken: ${{ secrets.GH_TOKEN }}
|
||||||
|
|
||||||
|
- name: Create GitHub Release
|
||||||
|
id: create_release
|
||||||
|
uses: actions/create-release@v1
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|
||||||
|
with:
|
||||||
|
tag_name: ${{ github.event.inputs.releaseversion }}
|
||||||
|
release_name: ${{ github.event.inputs.releaseversion }}
|
||||||
|
body: |
|
||||||
|
### Things that changed in this release
|
||||||
|
${{ steps.changelog.outputs.changelog }}
|
||||||
|
draft: false
|
||||||
|
prerelease: ${{ contains(github.event.inputs.releaseversion, '-') }}
|
Loading…
Reference in New Issue
Block a user