Skip to content

Commit

Permalink
chore: auto publish config. (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
overcat authored May 30, 2024
1 parent edce54a commit 00160fa
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,27 @@ jobs:
run: pip install poetry && poetry install

- name: Test
run: poetry run pytest -v
run: poetry run pytest -v

deploy:
needs: test
runs-on: ubuntu-latest
if: github.event_name == 'release' && github.event.action == 'created'
permissions:
id-token: write
steps:
- uses: actions/checkout@v3

- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.11'

- name: Install poetry
run: pipx install poetry

- name: Build Packages
run: poetry build

- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 00160fa

Please sign in to comment.