🌐 AI搜索 & 代理 主页
Skip to content

Commit 681aa8b

Browse files
committed
Updated workflows to set new env variables for build
1 parent 052f51a commit 681aa8b

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/javascript-sdk.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ jobs:
2929
with:
3030
command: version
3131
- name: Do build
32+
env:
33+
TYPESCRIPT_DECLARATION_FILE: "javascript/index.d.ts"
3234
run: |
3335
npm i
3436
npm run build-release

.github/workflows/python-sdk.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,13 @@ jobs:
4949
if: github.event.inputs.deploy_to_pypi == 'false'
5050
env:
5151
MATURIN_PYPI_TOKEN: ${{ secrets.TEST_PYPI_API_TOKEN }}
52+
PYTHON_STUB_FILE: "python/pgml/pgml.pyi"
5253
run: maturin publish -r testpypi -i python3.7 -i python3.8 -i python3.9 -i python3.10 -i python3.11 --skip-existing -F python
5354
- name: Build and deploy wheels to PyPI
5455
if: github.event.inputs.deploy_to_pypi == 'true'
5556
env:
5657
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
58+
PYTHON_STUB_FILE: "python/pgml/pgml.pyi"
5759
run: maturin publish -i python3.7 -i python3.8 -i python3.9 -i python3.10 -i python3.11 --skip-existing -F python
5860

5961
deploy-python-sdk-mac:
@@ -83,11 +85,13 @@ jobs:
8385
if: github.event.inputs.deploy_to_pypi == 'false'
8486
env:
8587
MATURIN_PYPI_TOKEN: ${{ secrets.TEST_PYPI_API_TOKEN }}
88+
PYTHON_STUB_FILE: "python/pgml/pgml.pyi"
8689
run: maturin publish -r testpypi -i python3.8 -i python3.9 -i python3.10 -i python3.11 --skip-existing -F python
8790
- name: Build and deploy wheels to PyPI
8891
if: github.event.inputs.deploy_to_pypi == 'true'
8992
env:
9093
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
94+
PYTHON_STUB_FILE: "python/pgml/pgml.pyi"
9195
run: maturin publish -i python3.8 -i python3.9 -i python3.10 -i python3.11 --skip-existing -F python
9296

9397
deploy-python-sdk-windows:
@@ -119,9 +123,11 @@ jobs:
119123
if: github.event.inputs.deploy_to_pypi == 'false'
120124
env:
121125
MATURIN_PYPI_TOKEN: ${{ secrets.TEST_PYPI_API_TOKEN }}
126+
PYTHON_STUB_FILE: "python/pgml/pgml.pyi"
122127
run: maturin publish -r testpypi -i python3.8 -i python3.9 -i python3.10 -i python3.11 --skip-existing -F python
123128
- name: Build and deploy wheels to PyPI
124129
if: github.event.inputs.deploy_to_pypi == 'true'
125130
env:
126131
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
132+
PYTHON_STUB_FILE: "python/pgml/pgml.pyi"
127133
run: maturin publish -i python3.8 -i python3.9 -i python3.10 -i python3.11 --skip-existing -F python

0 commit comments

Comments
 (0)