Skip to content

Commit

Permalink
WIP for TestPyPI
Browse files Browse the repository at this point in the history
  • Loading branch information
sandre35 committed Jan 9, 2024
1 parent b736dde commit 915811c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 18 deletions.
22 changes: 6 additions & 16 deletions .github/workflows/publish-to-pipy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,11 @@ on: push

jobs:
publish-to-pypi:
name: >-
Publish Python distribution to PyPI
if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
name: Publish Python distribution to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/xlsx_streaming
name: testpypi
url: https://test.pypi.org/p/xlsx_streaming2
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing

Expand All @@ -28,15 +26,7 @@ jobs:
--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/
- name: Download all the dists
uses: actions/download-artifact@v3
with:
name: python-package-distributions
path: dist/
- name: Publish distribution to PyPI
- name: Publish distribution to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = xlsx_streaming
version = 1.2.0.dev0
name = xlsx_streaming2
version = 0.6.0.dev0
description = Export your data as an xlsx stream
long_description = file: README.rst
long_description_content_type = text/x-rst
Expand Down

0 comments on commit 915811c

Please sign in to comment.