mirror of
https://gitee.com/log4j/pig.git
synced 2024-12-22 20:54:25 +08:00
35 lines
975 B
YAML
35 lines
975 B
YAML
name: publish github release
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
releaseversion:
|
|
description: 'Release version'
|
|
required: true
|
|
default: '3.8.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, '-') }}
|