File tree Expand file tree Collapse file tree 2 files changed +46
-6
lines changed Expand file tree Collapse file tree 2 files changed +46
-6
lines changed Original file line number Diff line number Diff line change 1010 release-please :
1111 runs-on : ubuntu-latest
1212 steps :
13- - name : Release
14- uses : google-github-actions/release-please-action@v4
15- with :
16- token : ${{ secrets.CI_RELEASE_PLEASE_TOKEN }}
17- release-type : simple
13+ - name : Release
14+ id : release
15+ uses : google-github-actions/release-please-action@v4
16+ with :
17+ token : ${{ secrets.GITHUB_TOKEN }}
18+ release-type : python
19+ package-name : commitlint
20+ pull-request-title-pattern : ' chore: release v${version}'
21+ pull-request-header : ' Release PR'
22+ changelog-types : >
23+ [
24+ {"type":"fix","section":"Bug Fixes"},
25+ {"type":"feat","section":"Features"}
26+ ]
27+ extra-files : >
28+ [
29+ "src/commitlint/__version__.py"
30+ ]
31+
32+ - uses : actions/checkout@v3
33+ if : ${{ steps.release.outputs.release_created }}
34+
35+ - name : Set up Python
36+ uses : actions/setup-python@v3
37+ if : ${{ steps.release.outputs.release_created }}
38+ with :
39+ python-version : ' 3.x'
40+
41+ - name : Install dependencies
42+ if : ${{ steps.release.outputs.release_created }}
43+ run : |
44+ python -m pip install --upgrade pip
45+ pip install build
46+
47+ - name : Build package
48+ if : ${{ steps.release.outputs.release_created }}
49+ run : python -m build
50+
51+ # Commented for now
52+ # - name: Publish package
53+ # if: ${{ steps.release.outputs.release_created }}
54+ # uses: pypa/gh-action-pypi-publish@v1.8.14
55+ # with:
56+ # user: __token__
57+ # password: ${{ secrets.PYPI_API_TOKEN }}
Original file line number Diff line number Diff line change 33TODO: automatically bump version through CI.
44"""
55
6- __version__ = "0.2.1"
6+ __version__ = "0.2.1" # x-release-please-version
You can’t perform that action at this time.
0 commit comments