Skip to content

Commit

Permalink
Merge pull request #9 from allegro/pypi-publishing
Browse files Browse the repository at this point in the history
Pypi Publishing Workflow Added (with dummy llm-wrapper version for testing)
  • Loading branch information
riccardo-alle authored Feb 22, 2024
2 parents 40a3d3f + 34b1de5 commit fb2cca3
Show file tree
Hide file tree
Showing 4 changed files with 507 additions and 115 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Release
on:
release:
types: [created]
workflow_dispatch:
jobs:
release:
runs-on: ubuntu-latest
Expand All @@ -21,11 +22,9 @@ jobs:
run: make install-env
- name: Build llm-wrapper package
run: make build
- name: Publish llm-wrapper package
if: (github.event_name == 'push' && startsWith(github.ref, 'refs/tags')) || github.event_name == 'workflow_dispatch'
uses: pypa/gh-action-pypi-publish@release/v1
with:
args: --verbose
user: "" # TODO: open-source
password: "" # TODO: open-source
repository_url: "" # TODO: open-source
- name: Publish llm-wrapper package to PyPI
env:
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
make publish
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
export TWINE_USERNAME?=__token__
export TWINE_PASSWORD?=your_token

install-poetry::
python3 -m pip install pip --upgrade
python3 -m pip install poetry==1.5.0
Expand All @@ -14,6 +17,8 @@ linter::
tests::
poetry run python -m pytest -s --verbose

publish::
poetry run python -m twine upload --verbose dist/*

docs::
poetry run mkdocs build
Loading

0 comments on commit fb2cca3

Please sign in to comment.