Skip to content

Commit

Permalink
Merge pull request #17 from JorisPenningsCM/fix/default-gateways
Browse files Browse the repository at this point in the history
Update python-publishtest.yml
  • Loading branch information
JorisPenningsCM authored Jun 13, 2024
2 parents 76a9f44 + a6015b1 commit 8183245
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 24 deletions.
36 changes: 14 additions & 22 deletions .github/workflows/python-publishtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,18 @@ on:
- '!**'
- 'cm_text/version.py'

jobs:
deploy:
runs-on: windows-latest
jobs:
testpypi-publish:
name: Upload release to test PyPI
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
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --user --upgrade setuptools wheel
python setup.py sdist bdist_wheel
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
python -m pip install --user --upgrade twine
python -m twine upload --repository testpypi --skip-existing dist/*
- uses: actions/checkout@v2
- id: build
uses: OpenAstronomy/build-python-dist@v1
- name: Publish package distributions to testPyPI
uses: pypa/[email protected]
3 changes: 1 addition & 2 deletions cm_text/version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@

__version__ = '2.0.4'
__version__ = '2.0.4'

0 comments on commit 8183245

Please sign in to comment.