diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml new file mode 100644 index 00000000..0cf627d9 --- /dev/null +++ b/.github/workflows/publish-to-pypi.yml @@ -0,0 +1,37 @@ +name: Publish Python distributions to PyPI + +on: + push: + branches: + - main + +jobs: + build-n-publish: + name: Build and publish Python distributions to PyPI and TestPyPI + runs-on: ubuntu-18.04 + + steps: + - uses: actions/checkout@master + - name: Set up Python 3.8 + uses: actions/setup-python@v1 + with: + python-version: 3.8 + + - name: Install pypa/build + run: >- + python -m + pip install + build + --user + - name: Build a binary wheel and a source tarball + run: >- + python -m + build + --sdist + --wheel + --outdir dist/ + - name: Publish distribution to PyPI + # if: startsWith(github.ref, 'refs/tags') + uses: pypa/gh-action-pypi-publish@v1.4.2 + with: + password: ${{ secrets.PYPI_API_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/publish-to-test-pypi.yml b/.github/workflows/publish-to-test-pypi.yml new file mode 100644 index 00000000..1f2e9550 --- /dev/null +++ b/.github/workflows/publish-to-test-pypi.yml @@ -0,0 +1,42 @@ +name: Publish Python distributions to PyPI + +on: + push: + branches: + - dev + +jobs: + build-n-publish: + name: Build and publish Python distributions to PyPI and TestPyPI + runs-on: ubuntu-18.04 + + steps: + - uses: actions/checkout@master + - name: Set up Python 3.8 + uses: actions/setup-python@v1 + with: + python-version: 3.8 + + - name: Go in mongo folder + run: >- + cd stac_fastapi/mongo + + - name: Install pypa/build + run: >- + python -m + pip install + build + --user + - name: Build a binary wheel and a source tarball + run: >- + python -m + build + --sdist + --wheel + --outdir dist/ + - name: Publish distribution to Test PyPI + # if: startsWith(github.ref, 'refs/tags') + uses: pypa/gh-action-pypi-publish@v1.4.2 + with: + password: ${{ secrets.TEST_PYPI_API_TOKEN }} + repository_url: https://test.pypi.org/legacy/ \ No newline at end of file diff --git a/VERSION b/VERSION new file mode 100644 index 00000000..cc6612c3 --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +2.3.0 \ No newline at end of file diff --git a/stac_fastapi/elasticsearch/stac_fastapi/elasticsearch/version.py b/stac_fastapi/elasticsearch/stac_fastapi/elasticsearch/version.py index 0ea7c034..3c7bccdd 100644 --- a/stac_fastapi/elasticsearch/stac_fastapi/elasticsearch/version.py +++ b/stac_fastapi/elasticsearch/stac_fastapi/elasticsearch/version.py @@ -1,2 +1,2 @@ """library version.""" -__version__ = "2.1.1" +__version__ = "2.3.0" diff --git a/stac_fastapi/mongo/stac_fastapi/mongo/version.py b/stac_fastapi/mongo/stac_fastapi/mongo/version.py index 0ea7c034..3c7bccdd 100644 --- a/stac_fastapi/mongo/stac_fastapi/mongo/version.py +++ b/stac_fastapi/mongo/stac_fastapi/mongo/version.py @@ -1,2 +1,2 @@ """library version.""" -__version__ = "2.1.1" +__version__ = "2.3.0"