File tree Expand file tree Collapse file tree 1 file changed +57
-0
lines changed Expand file tree Collapse file tree 1 file changed +57
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Publish Python 🐍 distribution 📦 to TestPyPI
2+
3+ on : push
4+
5+ jobs :
6+ build :
7+ name : Build distribution 📦
8+ runs-on : ubuntu-latest
9+
10+ steps :
11+ - uses : actions/checkout@v4
12+ - name : Set up Python
13+ uses : actions/setup-python@v5
14+ with :
15+ python-version : " 3.x"
16+ - name : Install pypa/build
17+ run : >-
18+ python3 -m
19+ pip install
20+ build
21+ setuptools
22+ wheel
23+ twine
24+ --user
25+ - name : Build a binary wheel and a source tarball
26+ run : python3 -m build
27+ - name : Check package with twine
28+ run : python3 -m twine check dist/*
29+ - name : Store the distribution packages
30+ uses : actions/upload-artifact@v4
31+ with :
32+ name : python-package-distributions
33+ path : dist/
34+
35+ publish-to-testpypi :
36+ name : Publish Python 🐍 distribution 📦 to TestPyPI
37+ needs :
38+ - build
39+ runs-on : ubuntu-latest
40+
41+ environment :
42+ name : testpypi
43+ url : https://test.pypi.org/p/bigquery-migrations
44+
45+ permissions :
46+ id-token : write
47+
48+ steps :
49+ - name : Download all the dists
50+ uses : actions/download-artifact@v4
51+ with :
52+ name : python-package-distributions
53+ path : dist/
54+ - name : Publish distribution 📦 to TestPyPI
55+ uses : pypa/gh-action-pypi-publish@release/v1
56+ with :
57+ repository-url : https://test.pypi.org/legacy/
You can’t perform that action at this time.
0 commit comments