File tree Expand file tree Collapse file tree 2 files changed +64
-0
lines changed Expand file tree Collapse file tree 2 files changed +64
-0
lines changed Original file line number Diff line number Diff line change
1
+ changelog :
2
+ exclude :
3
+ labels :
4
+ - ignore-for-release
5
+ authors :
6
+ - dependabot
7
+ categories :
8
+ - title : Bug Fixes
9
+ labels :
10
+ - bug
11
+ - title : Enhancements
12
+ labels :
13
+ - enhancement
14
+ - title : Other Changes
15
+ labels :
16
+ - " *"
Original file line number Diff line number Diff line change
1
+ name : Release Package
2
+
3
+ on :
4
+ push :
5
+ # Sequence of patterns matched against refs/tags
6
+ tags :
7
+ - ' v*' # Push events to matching v*, i.e. v1.0, v20.15.10
8
+ workflow_dispatch :
9
+ inputs :
10
+ version :
11
+ description : Manual Release
12
+ default : test
13
+ required : false
14
+
15
+ jobs :
16
+ build :
17
+ runs-on : ubuntu-latest
18
+ steps :
19
+
20
+ - name : Checkout repo
21
+ uses : actions/checkout@v4
22
+
23
+ - name : Set up Python
24
+ uses : actions/setup-python@v4
25
+ with :
26
+ python-version : ' 3.x'
27
+
28
+ - name : Install Dependencies
29
+ run : |
30
+ python -m pip install --upgrade pip build twine
31
+ python -m build
32
+ twine check --strict dist/*
33
+
34
+ - name : Create Release Notes
35
+ uses : actions/github-script@v6
36
+ with :
37
+ github-token : ${{secrets.GITHUB_TOKEN}}
38
+ script : |
39
+ await github.request(`POST /repos/${{ github.repository }}/releases`, {
40
+ tag_name: "${{ github.ref }}",
41
+ generate_release_notes: true
42
+ });
43
+
44
+ - name : Publish distribution 📦 to PyPI
45
+ uses : pypa/gh-action-pypi-publish@release/v1
46
+ with :
47
+ user : __token__
48
+ password : ${{ secrets.PYPI_PASSWORD }}
You can’t perform that action at this time.
0 commit comments