diff --git a/.github/workflows/build-and-push.yml b/.github/workflows/build-and-push.yml index c586700..7d8f668 100644 --- a/.github/workflows/build-and-push.yml +++ b/.github/workflows/build-and-push.yml @@ -4,9 +4,6 @@ on: release: types: - published - push: - branches: - - ninabernick/package workflow_dispatch: jobs: @@ -47,14 +44,14 @@ jobs: - name: Build with Poetry run: make build-wheel - # - name: Build and push Docker image - # uses: docker/build-push-action@v6 - # with: - # context: . - # push: true - # tags: | - # ghcr.io/${{ github.repository }}:${{ github.event.release.tag_name }} - # ghcr.io/${{ github.repository }}:latest + - name: Build and push Docker image + uses: docker/build-push-action@v6 + with: + context: . + push: true + tags: | + ghcr.io/${{ github.repository }}:${{ github.event.release.tag_name }} + ghcr.io/${{ github.repository }}:latest - name: Publish package distributions to PyPI uses: pypa/gh-action-pypi-publish@release/v1 diff --git a/README.md b/README.md index 710bd67..1605a13 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,11 @@ The libraries and tools that make Platformics work: 5. Run `make token` to generate an authorization token that you can use to interact with the API. The `make` target copies the necessary headers to the system clipboard. Paste the token into the `headers` section at the bottom of the GraphQL explorer API ## Versioning platformics -Right now, platformics is used in downstream applications by using the platformics image as the base Docker image. To select a version of platformics, add the appropriate version tags to the docker image. The version in `pyproject.toml` is managed using [poetry-dynamic-versioning](https://pypi.org/project/poetry-dynamic-versioning/) which determines version based on git tags. +Platformics can be used in downstream applications by +1) using the platformics image as the base Docker image. To select a version of platformics, add the appropriate version tags to the docker image +2) installing as a dependency, `pip install platformics`. + +The version in `pyproject.toml` is managed using [poetry-dynamic-versioning](https://pypi.org/project/poetry-dynamic-versioning/) which determines version based on git tags. ## Iterating on your schema 1. Make changes to `schema/schema.yml` diff --git a/pyproject.toml b/pyproject.toml index 9e8ed2d..36d5ddd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -65,7 +65,7 @@ requires = ["poetry-core", "poetry-dynamic-versioning>=1.0.0,<2.0.0"] build-backend = "poetry_dynamic_versioning.backend" [tool.poetry-dynamic-versioning] -enable = false +enable = true vcs = "git" [tool.black]