Compare commits
19 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
df1688dd75 | ||
|
a222e49a1d
|
|||
| 0ae5543fd2 | |||
| ac216e659e | |||
| ab233d51df | |||
| 95ce982379 | |||
| 2ae3968679 | |||
| 36abce649a | |||
| 045417ba6f | |||
| cd7e1f2af0 | |||
| 7b3f8ce11e | |||
|
|
592703b6cc | ||
| 173d480d5b | |||
|
|
0e2e20ea28 | ||
| 7796df45e5 | |||
|
|
ae8d2b01b3 | ||
| 3bf862d843 | |||
|
|
c00f2b91cc | ||
| 52a95c4860 |
@@ -1,5 +1,5 @@
|
||||
[tool.bumpversion]
|
||||
current_version = "0.1.8"
|
||||
current_version = "0.1.13"
|
||||
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
|
||||
serialize = ["{major}.{minor}.{patch}"]
|
||||
search = "{current_version}"
|
||||
|
||||
9
.gitea/release_notes.yml
Normal file
9
.gitea/release_notes.yml
Normal file
@@ -0,0 +1,9 @@
|
||||
changelog:
|
||||
sections:
|
||||
- title: ":star: New Features"
|
||||
labels: ["Kind/Feature", "Kind/Enhancement"]
|
||||
- title: ":lady_beetle: Bug Fixes"
|
||||
labels: ["Kind/Bug", "Kind/Hotfix"]
|
||||
issues:
|
||||
exclude:
|
||||
labels: ["wontfix", "question", "duplicate", "invalid"]
|
||||
@@ -64,12 +64,23 @@ jobs:
|
||||
echo "RELEASE_NOTES<<EOF" >> $GITHUB_ENV
|
||||
echo "${{ github.event.inputs.release_notes }}" >> $GITHUB_ENV
|
||||
echo "EOF" >> $GITHUB_ENV
|
||||
- name: Set changelog to environment
|
||||
id: set_changelog
|
||||
- name: Generate changelog
|
||||
id: changelog
|
||||
uses: metcalfc/changelog-generator@v4.6.2
|
||||
with:
|
||||
token: ${{ secrets.TOKEN }}
|
||||
- name: Get the changelog
|
||||
run: |
|
||||
echo "CHANGELOG<<EOF" >> $GITHUB_ENV
|
||||
echo "$(cat changelog.md)" >> $GITHUB_ENV
|
||||
echo "EOF" >> $GITHUB_ENV
|
||||
cat << "EOF"
|
||||
${{ steps.changelog.outputs.changelog }}
|
||||
EOF
|
||||
echo ${{ steps.changelog.outputs.changelog }}
|
||||
- name: Create release notes
|
||||
uses: johnyherangi/create-release-notes@main
|
||||
id: create-release-notes
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Create release
|
||||
id: create_release
|
||||
if: ${{ github.event.inputs.github_release == 'true' }}
|
||||
@@ -77,7 +88,7 @@ jobs:
|
||||
with:
|
||||
tag_name: ${{ env.VERSION }}
|
||||
release_name: Release ${{ env.VERSION }}
|
||||
body_path: changelog.md
|
||||
body: ${{ steps.create-release-notes.outputs.release-notes }}
|
||||
draft: false
|
||||
prerelease: false
|
||||
make_latest: true
|
||||
|
||||
@@ -1,38 +1,33 @@
|
||||
name: Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- v[0-9]+.[0-9]+.[0-9]+
|
||||
|
||||
on:
|
||||
milestone:
|
||||
types: [closed]
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
milestoneId:
|
||||
description: 'Milestone ID'
|
||||
required: true
|
||||
default: '1'
|
||||
name: Milestone Closure
|
||||
jobs:
|
||||
deploy:
|
||||
create-release-notes:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout Code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Update CHANGELOG
|
||||
id: changelog
|
||||
uses: requarks/changelog-action@v1
|
||||
with:
|
||||
token: ${{ secrets.TOKEN }}
|
||||
tag: ${{ github.ref_name }}
|
||||
|
||||
- name: Create Release
|
||||
uses: ncipollo/release-action@v1.12.0
|
||||
with:
|
||||
allowUpdates: true
|
||||
draft: false
|
||||
makeLatest: true
|
||||
name: ${{ github.ref_name }}
|
||||
body: ${{ steps.changelog.outputs.changes }}
|
||||
token: ${{ secrets.TOKEN }}
|
||||
|
||||
- name: Commit CHANGELOG.md
|
||||
uses: stefanzweifel/git-auto-commit-action@v4
|
||||
with:
|
||||
branch: main
|
||||
commit_message: 'docs: update CHANGELOG.md for ${{ github.ref_name }} [skip ci]'
|
||||
file_pattern: CHANGELOG.md
|
||||
- uses: actions/checkout@master
|
||||
- name: Generate changelog
|
||||
id: changelog
|
||||
uses: metcalfc/changelog-generator@3f82cef08fe5dcf57c591fe165e70e1d5032e15a # was: metcalfc/changelog-generator@v4.6.2
|
||||
with:
|
||||
myToken: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Generate Sprint-io Changelog
|
||||
uses: spring-io/github-changelog-generator@v0.0.12
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
milestone: ${{ github.event.inputs.milestoneId }}
|
||||
- name: Create Release
|
||||
id: create_release
|
||||
uses: ncipollo/release-action@440c8c1cb0ed28b9f43e4d1d670870f059653174 # was: ncipollo/release-action@v1
|
||||
with:
|
||||
tag: ${{ github.ref }}
|
||||
name: Release ${{ github.ref_name }}
|
||||
body: ${{ steps.changelog.outputs.changelog }}
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
Reference in New Issue
Block a user