File tree Expand file tree Collapse file tree 3 files changed +134
-0
lines changed Expand file tree Collapse file tree 3 files changed +134
-0
lines changed Original file line number Diff line number Diff line change 1+ name-template : ' $NEXT_MINOR_VERSION'
2+ tag-template : ' v$NEXT_MINOR_VERSION'
3+ autolabeler :
4+ - label : ' maintenance'
5+ files :
6+ - ' *.md'
7+ - ' .github/*'
8+ - label : ' bug'
9+ branch :
10+ - ' /bug-.+'
11+ - label : ' maintenance'
12+ branch :
13+ - ' /maintenance-.+'
14+ - label : ' feature'
15+ branch :
16+ - ' /feature-.+'
17+ categories :
18+ - title : ' Breaking Changes'
19+ labels :
20+ - ' breakingchange'
21+ - title : ' 🧪 Experimental Features'
22+ labels :
23+ - ' experimental'
24+ - title : ' 🚀 New Features'
25+ labels :
26+ - ' feature'
27+ - ' enhancement'
28+ - title : ' 🐛 Bug Fixes'
29+ labels :
30+ - ' fix'
31+ - ' bugfix'
32+ - ' bug'
33+ - ' BUG'
34+ - title : ' 🧰 Maintenance'
35+ label : ' maintenance'
36+ change-template : ' - $TITLE (#$NUMBER)'
37+ exclude-labels :
38+ - ' skip-changelog'
39+ template : |
40+ # Changes
41+
42+ $CHANGES
43+
44+ ## Contributors
45+ We'd like to thank all the contributors who worked on this release!
46+
47+ $CONTRIBUTORS
48+
Original file line number Diff line number Diff line change 1+ name : Release Drafter
2+
3+ on :
4+ push :
5+ # branches to consider in the event; optional, defaults to all
6+ branches :
7+ - main
8+
9+ permissions : {}
10+ jobs :
11+ update_release_draft :
12+ permissions :
13+ pull-requests : write # to add label to PR (release-drafter/release-drafter)
14+ contents : write # to create a github release (release-drafter/release-drafter)
15+
16+ runs-on : ubuntu-latest
17+ steps :
18+ # Drafts your next Release notes as Pull Requests are merged into "master"
19+ - uses : release-drafter/release-drafter@v5
20+ with :
21+ # (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml
22+ config-name : release-drafter-config.yml
23+ env :
24+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1+ name : Publish Release
2+
3+ on :
4+ release :
5+ types : [published]
6+
7+ env :
8+ PYTHON_VERSION : " 3.11"
9+ POETRY_VERSION : " 1.8.3"
10+
11+ jobs :
12+ build :
13+ runs-on : ubuntu-latest
14+
15+ steps :
16+ - uses : actions/checkout@v4
17+
18+ - name : Set up Python
19+ uses : actions/setup-python@v4
20+ with :
21+ python-version : ${{ env.PYTHON_VERSION }}
22+
23+ - name : Install Poetry
24+ uses : snok/install-poetry@v1
25+ with :
26+ version : ${{ env.POETRY_VERSION }}
27+
28+ - name : Build package
29+ run : poetry build
30+
31+ - name : Upload build
32+ uses : actions/upload-artifact@v4
33+ with :
34+ name : dist
35+ path : dist/
36+
37+ publish :
38+ needs : build
39+ runs-on : ubuntu-latest
40+
41+ steps :
42+ - uses : actions/checkout@v4
43+
44+ - name : Set up Python
45+ uses : actions/setup-python@v4
46+ with :
47+ python-version : ${{ env.PYTHON_VERSION }}
48+
49+ - name : Install Poetry
50+ uses : snok/install-poetry@v1
51+ with :
52+ version : ${{ env.POETRY_VERSION }}
53+
54+ - uses : actions/download-artifact@v4
55+ with :
56+ name : dist
57+ path : dist/
58+
59+ - name : Publish to PyPI
60+ env :
61+ POETRY_PYPI_TOKEN_PYPI : ${{ secrets.PYPI }}
62+ run : poetry publish
You can’t perform that action at this time.
0 commit comments