Skip to content

Commit 8990354

Browse files
authored
Merge pull request #758 from superannotateai/FRIDAY-3490
added github action for Test_PyPI
2 parents 4ada222 + 329a25a commit 8990354

File tree

2 files changed

+46
-2
lines changed

2 files changed

+46
-2
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Publish Python 🐍 distributions πŸ“¦ to TestPyPI
2+
3+
on:
4+
push:
5+
branches:
6+
- develop
7+
8+
jobs:
9+
build-n-publish:
10+
name: Build and publish Python 🐍 distributions πŸ“¦ to TestPyPI
11+
runs-on: ubuntu-20.04
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v3
15+
- name: Set up Python
16+
uses: actions/setup-python@v4
17+
with:
18+
python-version: "3.8"
19+
- name: Upgrade pip
20+
run: >-
21+
python -m
22+
pip install
23+
pip --upgrade
24+
--user
25+
- name: Install pypi/build
26+
run: >-
27+
python -m
28+
pip install
29+
build
30+
--user
31+
- name: Build a binary wheel and a source tarball
32+
run: >-
33+
python -m
34+
build
35+
--sdist
36+
--wheel
37+
--outdir dist/
38+
.
39+
- name: Publish distribution πŸ“¦ to TestPyPI
40+
uses: pypa/gh-action-pypi-publish@release/v1
41+
with:
42+
repository-url: https://test.pypi.org/legacy/
43+
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
44+
verbose: true

β€Ž.github/workflows/release.ymlβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
name: Publish Python 🐍 distributions πŸ“¦ to PyPI and TestPyPI
1+
name: Publish Python 🐍 distributions πŸ“¦ to PyPI
22

33
on:
44
release:
55
types: [prereleased,released]
66

77
jobs:
88
build-n-publish:
9-
name: Build and publish Python 🐍 distributions πŸ“¦ to PyPI and TestPyPI
9+
name: Build and publish Python 🐍 distributions πŸ“¦ to PyPI
1010
runs-on: ubuntu-20.04
1111
steps:
1212
- uses: actions/checkout@v3

0 commit comments

Comments
Β (0)