Auto-generate SDK for FinFeedAPI SEC API REST Historical #3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Publish Python SEC API SDK to PyPI | |
| on: | |
| push: | |
| branches: | |
| - master # Or your primary branch name | |
| paths: | |
| - 'finfeedapi/sec-api-rest/sdk/python/**' # Watch for changes in the Python SDK directory | |
| jobs: | |
| pypi-publish: | |
| name: upload release to PyPI | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: finfeedapi/sec-api-rest/sdk/python | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.10.12' | |
| - name: Install build dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install build wheel setuptools twine | |
| - name: Build package distributions | |
| run: python -m build --sdist --wheel --outdir dist/ . | |
| - name: deploy | |
| run: python -m twine upload dist/* -u __token__ -p ${{ secrets.PYPI_TOKEN }} || exit 0 |