Skip to content

Commit

Permalink
Merge pull request #19 from JorisPenningsCM/fix/default-gateways
Browse files Browse the repository at this point in the history
trying out twine auth with generated Github_token
  • Loading branch information
JorisPenningsCM authored Jun 13, 2024
2 parents 4778d40 + 0baad02 commit 5ec81b9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/python-publishtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,7 @@ jobs:
with:
python-version: "3.x"
- name: Install pypa/build
run: >-
python3 -m
pip install
build
--user
run: python3 -m pip install build
- name: Build a binary wheel and a source tarball
run: python3 -m build
- name: Store the distribution packages
Expand All @@ -41,11 +37,17 @@ jobs:
url: https://test.pypi.org/p/cm-text-sdk-python
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
contents: read # Add the contents permission for accessing repository contents
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/[email protected]
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
run: |
python3 -m pip install twine
twine upload --repository testpypi dist/*
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 5ec81b9

Please sign in to comment.