Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pypi Publishing Workflow Added (with dummy llm-wrapper version for testing) #9

Merged
merged 3 commits into from
Feb 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading