diff --git a/.github/workflows/pypi-publish.yml b/.github/workflows/pypi-publish.yml index 1a8130f..da451cd 100644 --- a/.github/workflows/pypi-publish.yml +++ b/.github/workflows/pypi-publish.yml @@ -46,11 +46,11 @@ jobs: - name: Build dev env run: docker build --tag local --file Dockerfile --target prod . - - name: Build python package - run: docker run local poetry build - - name: Publish a Python distribution to PyPI run: | - docker run local poetry version $(git describe --tags --abbrev=0) - docker run local poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN}} - docker run local poetry publish --build \ No newline at end of file + docker run local /bin/bash -c \ + "poetry version ${{ github.ref_name }} && + poetry publish \ + --build \ + --username ${{secrets.PYPI_USERNAME}} \ + --password ${{secrets.PYPI_PASSWORD}}" \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 108a389..163b68e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,12 +1,12 @@ [tool.poetry] name = "dynamic-world" -version = "v0.3.0" # PLaceholder, use dynamic versioning based on git tag +version = "0.0.0" # Placeholder, use dynamic versioning based on git tag description = "Land-use land-cover analysis using Dynamic World App from Earth Engine" authors = ["Reforestum team "] readme = "README.md" license = "CC-BY-4.0" repository = "https://github.com/Reforestum/dynamic-world" -homepage= "reforestum.com" +homepage= "https://reforestum.com/" [tool.poetry.dependencies] geojson = "^2.5.0"