File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Publish package
2+
3+ on :
4+ push :
5+ tags :
6+ - ' v[0-9]+.[0-9]+.[0-9]'
7+ defaults :
8+ run :
9+ shell : bash
10+ permissions : read-all
11+
12+ jobs :
13+ build-and-publish :
14+ runs-on : ubuntu-latest
15+ environment :
16+ name : pypi
17+ url : https://pypi.org/p/mysql-to-sqlite3
18+ permissions :
19+ id-token : write
20+ steps :
21+ - uses : actions/checkout@v3
22+ - name : Set up Python
23+ uses : actions/setup-python@v4
24+ with :
25+ python-version : " 3.x"
26+ - name : Install dependencies
27+ run : |
28+ python3 -m pip install --upgrade pip
29+ pip install setuptools wheel
30+ - name : Build a binary wheel and a source tarball
31+ run : |
32+ python3 setup.py sdist bdist_wheel
33+ - name : Publish distribution 📦 to Test PyPI
34+ uses : pypa/gh-action-pypi-publish@release/v1
35+ with :
36+ verbose : true
37+ repository-url : https://test.pypi.org/legacy/
38+ - name : Publish distribution 📦 to PyPI
39+ if : startsWith(github.ref, 'refs/tags')
40+ uses : pypa/gh-action-pypi-publish@release/v1
41+ with :
42+ verbose : true
You can’t perform that action at this time.
0 commit comments