Skip to content

Commit

Permalink
cd
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelpierre committed Nov 12, 2023
1 parent 7ec60f3 commit 5065938
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 1 deletion.
40 changes: 40 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: CD

on: workflow_dispatch

jobs:
build-n-publish:
permissions:
id-token: write
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Install pypa/build
run: >-
python -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: >-
python -m
build src
--sdist
--wheel
--outdir dist/
#- name: Publish distribution 📦 to Test PyPI
# uses: pypa/gh-action-pypi-publish@release/v1
# with:
# password: ${{ secrets.TEST_PYPI_API_TOKEN }}
# repository-url: https://test.pypi.org/legacy/
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

2 changes: 1 addition & 1 deletion src/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
current_dir = Path(__file__).parent.parent

setup(
name="larry",
name="larry-ai",
packages=find_packages(),
include_package_data=True,
setup_requires=["setuptools", "wheel"],
Expand Down

0 comments on commit 5065938

Please sign in to comment.