Skip to content

Merge pull request #18 from JorisPenningsCM/fix/default-gateways #64

Merge pull request #18 from JorisPenningsCM/fix/default-gateways

Merge pull request #18 from JorisPenningsCM/fix/default-gateways #64

# This workflows will upload a Python Package using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
name: publish to testPyPi
on:
push:
paths:
- '!**'
- 'cm_text/version.py'
jobs:
build:
name: Build distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install pypa/build
run: >-
python3 -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: python3 -m build
- name: Store the distribution packages
uses: actions/upload-artifact@v3
with:
name: python-package-distributions
path: dist/
testpypi-publish:
name: Publish Python distribution to testPyPI
runs-on: ubuntu-latest
environment:
name: testpypi
url: https://test.pypi.org/p/cm-text-sdk-python
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- name: Download all the dists
uses: actions/download-artifact@v3
with:
name: python-package-distributions
path: dist/
- name: Publish package distributions to testPyPI
uses: pypa/gh-action-pypi-publish@v1.8.14