Skip to content

Commit c6db183

Browse files
author
Marco Mancini
committed
Add github workflow to publish geolake client on PyPi
1 parent 15e305f commit c6db183

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Build geolake client and publish to PyPi
2+
3+
on:
4+
release:
5+
types: [published]
6+
workflow_dispatch:
7+
jobs:
8+
client-build-and-publish:
9+
name: Build geolake client and publish to TestPyPI
10+
strategy:
11+
matrix:
12+
python-version: ["3.11"]
13+
os: [ubuntu-latest]
14+
permissions:
15+
id-token: write
16+
runs-on: ${{ matrix.os }}
17+
steps:
18+
- uses: actions/checkout@v3
19+
- name: Set up Python ${{ matrix.python-version }}
20+
uses: actions/setup-python@v4
21+
with:
22+
python-version: ${{ matrix.python-version }}
23+
- name: Install build tool
24+
working-directory: ./client
25+
run: python3 -m pip install build --user .
26+
- name: Build wheels
27+
working-directory: ./client
28+
run: python -m build --sdist --wheel --outdir=dist/ .
29+
- name: Publish package distributions to PyPI
30+
uses: pypa/gh-action-pypi-publish@release/v1
31+
with:
32+
packages-dir: ./client/dist

0 commit comments

Comments
 (0)