Skip to content

Commit 1a466f9

Browse files
committed
publish
1 parent d0f286b commit 1a466f9

File tree

2 files changed

+39
-1
lines changed

2 files changed

+39
-1
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Publish Python SEC API SDK to PyPI
2+
3+
on:
4+
push:
5+
branches:
6+
- master # Or your primary branch name
7+
paths:
8+
- 'finfeedapi/sec-api/sdk/python/**' # Watch for changes in the Python SDK directory
9+
10+
jobs:
11+
pypi-publish:
12+
name: upload release to PyPI
13+
runs-on: ubuntu-latest
14+
defaults:
15+
run:
16+
working-directory: finfeedapi/sec-api/sdk/python
17+
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/checkout@v4
21+
22+
- name: Set up python
23+
uses: actions/setup-python@v5
24+
with:
25+
python-version: '3.10.12'
26+
27+
- name: Install build dependencies
28+
run: |
29+
python -m pip install --upgrade pip
30+
pip install build wheel setuptools twine
31+
32+
- name: Build package distributions
33+
# Change working directory to where your pyproject.toml or setup.py is located
34+
working-directory: finfeedapi/sec-api/sdk/python
35+
run: python -m build --sdist --wheel --outdir dist/ .
36+
37+
- name: deploy
38+
run: python -m twine upload dist/* -u __token__ -p ${{ secrets.PYPI_TOKEN }} || exit 0

finfeedapi/sec-api/sdk-config/python.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
outputDir: sdk/python
33
generatorName: python
44
additionalProperties:
5-
packageName: api-bricks-sec-api-rest
5+
packageName: api-bricks-sec-api-rest
66
projectName: API Bricks SEC API REST
77
generateSourceCodeOnly: true

0 commit comments

Comments
 (0)