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/