From a69150e46d87569130bfe447b6a7ed8ea2ce2160 Mon Sep 17 00:00:00 2001 From: Satoshi Nakamoto <65907137+SatoshiNakamotoBitcoin@users.noreply.github.com> Date: Wed, 24 Jul 2024 02:32:04 +0200 Subject: [PATCH] Create test-pypi.yml --- .github/workflows/test-pypi.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/test-pypi.yml diff --git a/.github/workflows/test-pypi.yml b/.github/workflows/test-pypi.yml new file mode 100644 index 0000000..3fa4622 --- /dev/null +++ b/.github/workflows/test-pypi.yml @@ -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/