Skip to content

Commit

Permalink
Merge pull request #11 from Reforestum/fix/publish-workflow
Browse files Browse the repository at this point in the history
Fix & publish workflow
  • Loading branch information
jsga authored Aug 17, 2022
2 parents cd3b513 + 0ae7cfd commit 1249317
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
docker run local /bin/bash -c \
"poetry version ${{ github.ref_name }} &&
poetry publish \
--build \
--username ${{secrets.PYPI_USERNAME}} \
--password ${{secrets.PYPI_PASSWORD}}"
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <info@reforestum.com>"]
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"
Expand Down

0 comments on commit 1249317

Please sign in to comment.