Update test-pypi.yml

This commit is contained in:
Satoshi Nakamoto 2024-02-16 20:16:27 +01:00 committed by GitHub
parent 62c30638b1
commit 3312731f7a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -7,19 +7,18 @@ jobs:
test_pypi:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- uses: actions/setup-python@v4
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.12.0'
python-version: '3.x'
architecture: 'x64'
- run: pip3 install poetry
- run: pip install poetry==1.1.12
- run: >-
poetry version patch &&
version=$(poetry version | awk '{print $2}') &&
poetry version $version.dev.$(date +%s)
- run: poetry build
- name: Publish package to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
- uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.TEST_PYPI_TOKEN }}