Compare commits
13 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0e2e20ea28 | ||
| 7796df45e5 | |||
|
|
ae8d2b01b3 | ||
| 3bf862d843 | |||
|
|
c00f2b91cc | ||
| 52a95c4860 | |||
|
|
4eab9159d4 | ||
| 6998b4f217 | |||
| 23640ed1a0 | |||
| 96efc6c312 | |||
| 96bb75653c | |||
| f1b7d2dab8 | |||
| fae5e23ba7 |
@@ -1,5 +1,5 @@
|
|||||||
[tool.bumpversion]
|
[tool.bumpversion]
|
||||||
current_version = "0.1.7"
|
current_version = "0.1.11"
|
||||||
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
|
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
|
||||||
serialize = ["{major}.{minor}.{patch}"]
|
serialize = ["{major}.{minor}.{patch}"]
|
||||||
search = "{current_version}"
|
search = "{current_version}"
|
||||||
|
|||||||
@@ -10,4 +10,14 @@ jobs:
|
|||||||
- name: Checkout the code
|
- name: Checkout the code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: echo name
|
- name: echo name
|
||||||
run: echo ${{ github.event.repository.owner.login }}
|
run: echo ${{ github.event.repository.owner.login }}
|
||||||
|
- name: Get milestone from tag
|
||||||
|
id: milestone-from-tag
|
||||||
|
run: |
|
||||||
|
milestone=0.1.7
|
||||||
|
echo "milestone=$milestone" >> $GITHUB_OUTPUT
|
||||||
|
echo $milestone
|
||||||
|
- name: Generate Changelog
|
||||||
|
uses: spring-io/github-changelog-generator@v0.0.12
|
||||||
|
with:
|
||||||
|
milestone: ${{ steps.milestone-from-tag.outputs.milestone }}
|
||||||
@@ -63,18 +63,18 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo "RELEASE_NOTES<<EOF" >> $GITHUB_ENV
|
echo "RELEASE_NOTES<<EOF" >> $GITHUB_ENV
|
||||||
echo "${{ github.event.inputs.release_notes }}" >> $GITHUB_ENV
|
echo "${{ github.event.inputs.release_notes }}" >> $GITHUB_ENV
|
||||||
echo "EOF" >> $GITHUB_ENV
|
echo "EOF" >> $GITHUB_ENV
|
||||||
- name: Generate Changelog
|
- name: Generate changelog
|
||||||
uses: spring-io/github-changelog-generator@main
|
id: changelog
|
||||||
|
uses: metcalfc/changelog-generator@v4.6.2
|
||||||
with:
|
with:
|
||||||
milestone: '1.0.0'
|
myToken: ${{ secrets.TOKEN }}
|
||||||
|
- name: Get the changelog
|
||||||
- name: Set changelog to environment
|
|
||||||
id: set_changelog
|
|
||||||
run: |
|
run: |
|
||||||
echo "CHANGELOG<<EOF" >> $GITHUB_ENV
|
cat << "EOF"
|
||||||
echo "$(cat changelog.md)" >> $GITHUB_ENV
|
${{ steps.changelog.outputs.changelog }}
|
||||||
echo "EOF" >> $GITHUB_ENV
|
EOF
|
||||||
|
|
||||||
- name: Create release
|
- name: Create release
|
||||||
id: create_release
|
id: create_release
|
||||||
if: ${{ github.event.inputs.github_release == 'true' }}
|
if: ${{ github.event.inputs.github_release == 'true' }}
|
||||||
@@ -82,7 +82,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
tag_name: ${{ env.VERSION }}
|
tag_name: ${{ env.VERSION }}
|
||||||
release_name: Release ${{ env.VERSION }}
|
release_name: Release ${{ env.VERSION }}
|
||||||
body_path: changelog.md
|
body: ${{ steps.changelog.outputs.changelog }}
|
||||||
draft: false
|
draft: false
|
||||||
prerelease: false
|
prerelease: false
|
||||||
make_latest: true
|
make_latest: true
|
||||||
|
|||||||
38
.gitea/workflows/release_notes.yml
Normal file
38
.gitea/workflows/release_notes.yml
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
name: Deploy
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- v[0-9]+.[0-9]+.[0-9]+
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
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
|
||||||
Reference in New Issue
Block a user