File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed
Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change 1+ # This is a basic workflow that is manually triggered
2+
3+ name : Publish injective-py to TestPyPI and PyPI
4+ on : push
5+
6+ # A workflow run is made up of one or more jobs that can run sequentially or in parallel
7+ jobs :
8+ build-n-publish :
9+ name : Build and publish injective-py to TestPyPI and PyPI
10+ # The type of runner that the job will run on
11+ runs-on : ubuntu-20.04
12+
13+ steps :
14+ - uses : actions/checkout@master
15+ - name : Set up Python 3.7
16+ uses : actions/setup-python@v1
17+ with :
18+ python-version : 3.7
19+ - name : Install pypa/build
20+ run : >-
21+ python -m
22+ pip install
23+ build
24+ --user
25+ - name : Build a binary wheel and a source tarball
26+ run : >-
27+ python -m
28+ build
29+ --sdist
30+ --wheel
31+ --outdir dist/
32+ - name : Publish distribution injective-py to Test PyPI
33+ uses : pypa/gh-action-pypi-publish@master
34+ with :
35+ password : ${{ secrets.TEST_PYPI_API_TOKEN }}
36+ repository_url : https://test.pypi.org/legacy/
37+ - name : Publish distribution 📦 to PyPI
38+ if : startsWith(github.ref, 'refs/tags')
39+ uses : pypa/gh-action-pypi-publish@master
40+ with :
41+ password : ${{ secrets.PYPI_API_TOKEN }}
You can’t perform that action at this time.
0 commit comments