File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed
chordspy/.github/workflows Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Publish Python Package
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - " v0.1.0
7
+
8
+ jobs:
9
+ build-n-publish:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: actions/checkout@v4
13
+
14
+ - name: Set up Python
15
+ uses: actions/setup-python@v5
16
+ with:
17
+ python-version: '3.x'
18
+
19
+ - name: Install build dependencies
20
+ run: python -m pip install --upgrade pip setuptools wheel build twine
21
+
22
+ - name: Build package
23
+ run: python -m build
24
+
25
+ - name: Verify package
26
+ run: twine check dist/*
27
+
28
+ - name: Publish to PyPI
29
+ uses: pypa/gh-action-pypi-publish@release/v1
30
+ with:
31
+ password: ${{ secrets.PYPI_API_TOKEN }}
32
+
33
+ - name: Create GitHub Release
34
+ uses: softprops/action-gh-release@v1
35
+ with:
36
+ files: dist/*
37
+ generate_release_notes: true
38
+ env:
39
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments