Merge pull request #145 from mechmotum/update-docs #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: TestPyPI | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
test_pypi: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install poetry | |
run: pipx install poetry==1.8.3 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.12 | |
- run: >- | |
poetry version patch && | |
version=$(poetry version | awk '{print $2}') && | |
poetry version $version.dev.$(date +%s) | |
- run: poetry build | |
- uses: pypa/gh-action-pypi-publish@v1.10.3 | |
with: | |
user: __token__ | |
password: ${{ secrets.TEST_PYPI_TOKEN }} | |
repository-url: https://test.pypi.org/legacy/ |