Skip to content

Commit 9be4da1

Browse files
committed
Fixing automated GH release
1 parent 2ce112c commit 9be4da1

File tree

2 files changed

+56
-17
lines changed

2 files changed

+56
-17
lines changed

.github/release-drafter.yml

Lines changed: 51 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,69 @@
1-
name-template: 'Release v${{NEXT_VERSION}}'
2-
tag-template: 'v${{NEXT_VERSION}}'
1+
name-template: 'Release v${{ env.RELEASE_VERSION }}'
2+
tag-template: 'v${{ env.RELEASE_VERSION }}'
33
categories:
44
- title: '🚀 Features'
55
labels:
66
- 'feature'
7-
- 'enhancement'
7+
collapse-after: 3
88
- title: '🐛 Bug Fixes'
99
labels:
1010
- 'fix'
1111
- 'bugfix'
1212
- 'bug'
13+
collapse-after: 3
1314
- title: '🧰 Maintenance'
1415
labels:
1516
- 'chore'
1617
- 'maintenance'
17-
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
18-
change-title-escapes: '\<*_&'
19-
version-resolver:
20-
major:
18+
collapse-after: 3
19+
- title: '🔨 Refactor'
2120
labels:
22-
- 'major'
23-
minor:
21+
- 'refactor'
22+
- 'refactoring'
23+
collapse-after: 3
24+
- title: '🧪 Testing'
2425
labels:
25-
- 'minor'
26-
patch:
26+
- 'tests'
27+
- 'testing'
28+
- 'test'
29+
- 'unittest'
30+
- 'pytest'
31+
collapse-after: 3
32+
- title: '📚 Documentation'
2733
labels:
28-
- 'patch'
29-
default: patch
30-
template: |
31-
## Changes
34+
- 'docs'
35+
- 'documentation'
36+
collapse-after: 3
37+
- title: '🔒 Security'
38+
labels:
39+
- 'security'
40+
- 'vulnerability'
41+
- 'vulnerabilities'
42+
- 'security-fix'
43+
- 'security-fixes'
44+
- 'security-update'
45+
- 'security-updates'
46+
- 'security-patch'
47+
- 'security-patches'
48+
- 'security-release'
49+
- 'security-releases'
50+
- 'security-issue'
51+
- 'security-issues'
52+
- 'security-bug'
53+
- 'security-bugs'
54+
- 'security-vulnerability'
55+
- 'security-vulnerabilities'
56+
- 'security-notice'
57+
- 'security-notices'`
58+
collapse-after: 3
59+
- title: 'Enhancement'
60+
collapse-after: 3
61+
change-template: '- $TITLE by @$AUTHOR in (#$NUMBER)'
62+
change-title-escapes: '\<*_&'
3263
64+
template: |
65+
## What’s Changed
3366
$CHANGES
67+
68+
## New Contributors
69+
$CONTRIBUTORS

.github/workflows/publish.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ jobs:
7878
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_PASSWORD }}
7979

8080
create-release:
81-
needs: build-and-publish
82-
if: needs.build-and-publish.outputs.publish_to_pypi == 'true'
81+
needs: [prepare-and-check, build-and-publish]
82+
if: needs.prepare-and-check.outputs.publish_to_pypi == 'true'
8383
runs-on: ubuntu-latest
8484
steps:
8585
- uses: actions/checkout@v4
@@ -95,6 +95,9 @@ jobs:
9595
with:
9696
inputs: ./dist/*.tar.gz ./dist/*.whl
9797

98+
- name: Set Release Version Env
99+
run: echo "RELEASE_VERSION=${{ needs.prepare-and-check.outputs.version }}" >> $GITHUB_ENV
100+
98101
- name: Draft Release
99102
id: draft_release
100103
uses: release-drafter/release-drafter@v6

0 commit comments

Comments
 (0)