Skip to content

Commit

Permalink
Publish openstate-core metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
alexobaseki committed Sep 20, 2024
1 parent ececf68 commit 44718a8
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,23 @@ jobs:
uses: snok/[email protected]
- name: configure pypi credentials
run: poetry config pypi-token.pypi "${{ secrets.PYPI_API_KEY }}"
- name: Publish package
- name: Publish core package
run: poetry publish --build
- name: install dependencies
run: poetry install
- name: update metadata
env:
DATABASE_URL: ${{ secrets.OPENSTATES_DATABASE_URL }}
run: poetry run os-initdb
# Add steps for metadata package
- name: Change directory to metadata
run: cd openstates/metadata

- name: install dependencies for metadata
run: poetry install

- name: configure pypi credentials for metadata package
run: poetry config pypi-token.pypi "${{ secrets.PYPI_API_KEY }}"

- name: Publish metadata package
run: poetry publish --build
36 changes: 36 additions & 0 deletions openstates/metadata/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions openstates/metadata/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[tool.poetry]
name = "openstates-metadata"
version = "0.1.0"
description = "Openstates metadata"
authors = ["Alex Obaseki <[email protected]>"]
license = "MIT"


[tool.poetry.dependencies]
python = "^3.9"
attr = "^0.3.2"
attrs = "^24.2.0"


[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

0 comments on commit 44718a8

Please sign in to comment.