Skip to content

Commit

Permalink
revert temp changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Nina Bernick committed Aug 23, 2024
1 parent 959dd95 commit 06c9fbb
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/build-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ on:
release:
types:
- published
push:
branches:
- ninabernick/package
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -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
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 06c9fbb

Please sign in to comment.