File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99 pull_request :
1010 branches :
1111 - dev
12+ workflow_dispatch :
1213
1314env :
1415 PYTHON_VER : ' 3.10'
7071 - name : Build distribution
7172 run : |
7273 export HEAD_COMMIT_ID=$(git rev-parse HEAD)
74+ # remove git clone dependencies, see https://github.com/Project-MONAI/MONAI/issues/5882
75+ sed -i /git+/d pyproject.toml
7376 sed -i 's/name\ =\ "monai"$/name\ =\ "monai-weekly"/g' pyproject.toml
7477 echo "__commit_id__ = \"$HEAD_COMMIT_ID\"" >> monai/__init__.py
7578 git diff pyproject.toml monai/__init__.py
9093 pip install dist/*.whl
9194 pip list
9295 (cd "$(mktemp -d)" && python -c 'import monai; print(monai.__version__)')
96+ - name : Publish to Test PyPI
97+ if : github.event_name != 'schedule' # only test publish on PR
98+ uses : pypa/gh-action-pypi-publish@release/v1
99+ with :
100+ repository-url : https://test.pypi.org/legacy/
101+ user : __token__
102+ password : ${{ secrets.TEST_PYPI_TOKEN }}
93103 - name : Publish to PyPI
94104 if : github.event_name == 'schedule' # only publish on cron run
95105 uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments