Skip to content

Commit

Permalink
Merge pull request #146 from openstates/openstates-metadata-update-re…
Browse files Browse the repository at this point in the history
…lease-step

Update Release steps for Openstates_metadata
  • Loading branch information
alexobaseki authored Oct 8, 2024
2 parents 231506e + 89799ef commit 0210470
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,13 @@ jobs:
run: |
mkdir -p core_metadata
cp -r openstates/metadata core_metadata
- name: Change directory to core_metadata
run: cd core_metadata
- name: Move configuration files
- name: Handle openstates_metadata steps
working-directory: ./core_metadata
run: |
mv metadata/pyproject.toml.sample pyproject.toml
mv metadata/.python-version.sample .python-version
mv metadata/README.md.sample README.md
mv metadata openstates_metadata
- name: Install dependencies for openstates_metadata
run: poetry install
- name: Configure pypi credentials for metadata package
run: poetry config pypi-token.pypi "${{ secrets.OPENSTATES_METADATA_PYPI_API_KEY }}"
- name: Publish openstates_metadata package
run: poetry publish --build
poetry install
poetry config pypi-token.pypi "${{ secrets.OPENSTATES_METADATA_PYPI_API_KEY }}"
poetry publish --build

0 comments on commit 0210470

Please sign in to comment.