diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..6e86730 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,48 @@ +name: Publish release on TestPypi + +on: + release: + types: [prereleased] + +jobs: + pre-release-build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-python@v5 + with: + python-version: "3.10" + + - name: build release distributions + run: | + python -m pip install --upgrade pip + pip install build + python -m build + + - name: upload windows dists + uses: actions/upload-artifact@v4 + with: + name: release-dists + path: dist/ + + test-pypi-publish: + runs-on: ubuntu-latest + needs: + - release-build + permissions: + id-token: write + + steps: + - name: Retrieve release distributions + uses: actions/download-artifact@v4 + with: + name: release-dists + path: dist/ + + - name: Publish package distributions to TestPyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + repository-url: https://test.pypi.org/legacy/ + package_name: python-navitia-client diff --git a/pyproject.toml b/pyproject.toml index 805fdde..5896499 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,7 +14,7 @@ classifiers = [ "Intended Audience :: Developers", "Programming Language :: Python :: 3.10", ] -version = "0.0.1" +version = "1.0.1" requires-python = ">=3.10" dependencies = [ "requests>=2.31, < 3",