Create test-pypi.yml

This commit is contained in:
Satoshi Nakamoto 2024-07-24 02:32:04 +02:00 committed by GitHub
parent 2fb2688749
commit a69150e46d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

26
.github/workflows/test-pypi.yml vendored Normal file
View file

@ -0,0 +1,26 @@
name: TestPyPI
on:
push:
branches:
- master
jobs:
test_pypi:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.12.0'
architecture: 'x64'
- run: pip3 install poetry
- 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
with:
user: __token__
password: ${{ secrets.TEST_PYPI_TOKEN }}
repository_url: https://test.pypi.org/legacy/