Skip to content

Commit bd54534

Browse files
authored
Merge pull request #5 from jonhealy1/publish
Publish to test-pypi
2 parents 5d9836d + c13a61d commit bd54534

File tree

5 files changed

+82
-2
lines changed

5 files changed

+82
-2
lines changed

.github/workflows/publish-to-pypi.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Publish Python distributions to PyPI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build-n-publish:
10+
name: Build and publish Python distributions to PyPI and TestPyPI
11+
runs-on: ubuntu-18.04
12+
13+
steps:
14+
- uses: actions/checkout@master
15+
- name: Set up Python 3.8
16+
uses: actions/setup-python@v1
17+
with:
18+
python-version: 3.8
19+
20+
- name: Install pypa/build
21+
run: >-
22+
python -m
23+
pip install
24+
build
25+
--user
26+
- name: Build a binary wheel and a source tarball
27+
run: >-
28+
python -m
29+
build
30+
--sdist
31+
--wheel
32+
--outdir dist/
33+
- name: Publish distribution to PyPI
34+
# if: startsWith(github.ref, 'refs/tags')
35+
uses: pypa/gh-action-pypi-publish@v1.4.2
36+
with:
37+
password: ${{ secrets.PYPI_API_TOKEN }}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Publish Python distributions to PyPI
2+
3+
on:
4+
push:
5+
branches:
6+
- dev
7+
8+
jobs:
9+
build-n-publish:
10+
name: Build and publish Python distributions to PyPI and TestPyPI
11+
runs-on: ubuntu-18.04
12+
13+
steps:
14+
- uses: actions/checkout@master
15+
- name: Set up Python 3.8
16+
uses: actions/setup-python@v1
17+
with:
18+
python-version: 3.8
19+
20+
- name: Go in mongo folder
21+
run: >-
22+
cd stac_fastapi/mongo
23+
24+
- name: Install pypa/build
25+
run: >-
26+
python -m
27+
pip install
28+
build
29+
--user
30+
- name: Build a binary wheel and a source tarball
31+
run: >-
32+
python -m
33+
build
34+
--sdist
35+
--wheel
36+
--outdir dist/
37+
- name: Publish distribution to Test PyPI
38+
# if: startsWith(github.ref, 'refs/tags')
39+
uses: pypa/gh-action-pypi-publish@v1.4.2
40+
with:
41+
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
42+
repository_url: https://test.pypi.org/legacy/

VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2.3.0
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
"""library version."""
2-
__version__ = "2.1.1"
2+
__version__ = "2.3.0"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
"""library version."""
2-
__version__ = "2.1.1"
2+
__version__ = "2.3.0"

0 commit comments

Comments
 (0)