Skip to content

Commit

Permalink
deploy action
Browse files Browse the repository at this point in the history
  • Loading branch information
ea-rus committed Oct 4, 2024
1 parent f238570 commit 6dd1f99
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build and publish to PyPi

on:
release:
types: [published]

jobs:
# Push a new release to PyPI
deploy_to_pypi:
name: Publish to PyPI
runs-on: ubuntu-latest
if: github.actor != 'mindsdbadmin'
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/[email protected]
with:
python-version: ${{ vars.CI_PYTHON_VERSION }}
- name: Install dependencies
run: |
pip install -r requirements.txt
pip install setuptools wheel twine
- name: Clean previous builds
run: rm -rf dist/ build/ *.egg-info
- name: Build and publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
# This uses the version string from __about__.py, which we checked matches the git tag above
python setup.py sdist
twine upload dist/*
9 changes: 9 additions & 0 deletions src/aipdf/__about__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
__title__ = 'aipdf'
__package_name__ = 'aipdf'
__version__ = '0.0.1'
__description__ = 'A tool to extract PDF files to markdown, or any other format using AI'
__email__ = '[email protected]'
__author__ = 'MindsDB Inc'
__github__ = 'https://github.com/mindsdb/aipdf'
__pypi__ = 'https://pypi.org/project/mindsdb/'
__copyright__ = 'Copyright 2024-MindsDB'

0 comments on commit 6dd1f99

Please sign in to comment.