Feature 22 - Add python packages for geolake drivers #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build geolake client and publish to TestPyPi | |
on: | |
pull_request: | |
types: [opened, synchronize] | |
workflow_dispatch: | |
jobs: | |
client-build-and-publish: | |
name: Build geolake client and publish to TestPyPI | |
strategy: | |
matrix: | |
python-version: ["3.11"] | |
os: [ubuntu-latest] | |
permissions: | |
contents: read | |
id-token: write | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install build tool | |
working-directory: ./client | |
run: python3 -m pip install build --user . | |
- name: Build wheels | |
working-directory: ./client | |
run: python -m build --sdist --wheel --outdir=dist/ . | |
- name: Publish package distributions to TestPyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
packages-dir: ./client/dist | |
repository-url: https://test.pypi.org/legacy/ |