Skip to content

Commit

Permalink
Merge pull request #18 from JorisPenningsCM/fix/default-gateways
Browse files Browse the repository at this point in the history
seperated the build and publish steps
  • Loading branch information
JorisPenningsCM authored Jun 13, 2024
2 parents 8183245 + a5952fd commit 4778d40
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 7 deletions.
37 changes: 31 additions & 6 deletions .github/workflows/python-publishtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,42 @@ on:
- '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: Upload release to test PyPI
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:
- uses: actions/checkout@v2
- id: build
uses: OpenAstronomy/build-python-dist@v1
- name: Publish package distributions to testPyPI
uses: pypa/[email protected]
- 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/[email protected]
2 changes: 1 addition & 1 deletion cm_text/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '2.0.4'
__version__ = '2.0.4'

0 comments on commit 4778d40

Please sign in to comment.