Skip to content
Snippets Groups Projects
Commit 49f9ea9d authored by Simonas's avatar Simonas
Browse files

updated release action

parent 7fa3cf62
No related branches found
No related tags found
No related merge requests found
......@@ -14,20 +14,35 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python - -y --version 1.5.1
- name: Install dependencies
run: poetry install
- name: Build
run: poetry build
publish:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install Poetry
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
curl -sSL https://install.python-poetry.org | python - -y --version 1.5.1
- name: Publish to PyPI
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
poetry config repositories.remote https://upload.pypi.org/legacy/
poetry --no-interaction -v publish --build --repository remote --username "__token__" --password "$PYPI_API_TOKEN"
env:
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
release:
needs: build
needs: publish
runs-on: ubuntu-latest
steps:
- name: Create Release
......
from setuptools import setup, find_packages
setup(
name="semantic_router",
version="0.0.1",
packages=find_packages(),
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment