mirror of
https://github.com/darksaid98/auto-changelog.git
synced 2026-12-02 22:16:06 +00:00
41 lines
845 B
YAML
41 lines
845 B
YAML
name: Release
|
|
|
|
on :
|
|
push:
|
|
tags:
|
|
- 'v[0-9]+.[0-9]+.[0-9]+*'
|
|
|
|
jobs:
|
|
test :
|
|
uses: ./.github/workflows/test.yml
|
|
|
|
release:
|
|
name : Create Release
|
|
|
|
concurrency: github-release
|
|
|
|
environment:
|
|
name: release
|
|
url : https://github.com/${{ github.repository }}/releases/tag/${{ github.ref_name }}
|
|
|
|
runs-on : ubuntu-latest
|
|
|
|
needs :
|
|
- test
|
|
|
|
steps :
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Changelog
|
|
uses: ardalanamini/auto-changelog@master
|
|
id : changelog
|
|
|
|
- name: Create Release
|
|
uses: softprops/action-gh-release@v1
|
|
env :
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
with:
|
|
body : |
|
|
${{ steps.changelog.outputs.changelog }}
|
|
prerelease: ${{ steps.changelog.outputs.prerelease }}
|