mirror of
https://github.com/msberends/AMR.git
synced 2025-07-11 23:01:56 +02:00
(v2.1.1.9095) Python support
This commit is contained in:
11
.github/workflows/publish-to-pypi.yml
vendored
11
.github/workflows/publish-to-pypi.yml
vendored
@ -30,7 +30,7 @@
|
||||
on:
|
||||
push:
|
||||
# only on main
|
||||
branches: 'main_UPDATE_THIS'
|
||||
branches: "main"
|
||||
|
||||
name: Publish Python Package to PyPI
|
||||
|
||||
@ -53,14 +53,17 @@ jobs:
|
||||
python -m pip install --upgrade pip
|
||||
pip install build twine
|
||||
|
||||
- name: Build the package
|
||||
run: python -m build
|
||||
- name: Build the Python package
|
||||
run: |
|
||||
cd data-raw/
|
||||
bash _generate_python_wrapper.sh
|
||||
|
||||
- name: Publish to PyPI
|
||||
env:
|
||||
TWINE_USERNAME: "msberends"
|
||||
TWINE_USERNAME: "__token__"
|
||||
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
|
||||
run: |
|
||||
cd data-raw/python_wrapper/AMR
|
||||
python -m twine upload dist/*
|
||||
# for test server:
|
||||
# python -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*
|
||||
|
Reference in New Issue
Block a user