mirror of https://github.com/hpcaitech/ColossalAI
[test] fixed release workflow step (#464)
parent
292590e0fa
commit
2963565ff8
|
@ -12,7 +12,8 @@ jobs:
|
|||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: '3.7.4'
|
||||
python-version: '3.7.12'
|
||||
- run: python setup.py sdist build
|
||||
# publish to PyPI if executed on the main branch
|
||||
# publish to Test PyPI if executed on the develop branch
|
||||
- name: Publish package to PyPI
|
||||
|
|
|
@ -4,7 +4,7 @@ on: workflow_dispatch
|
|||
|
||||
jobs:
|
||||
build-n-publish:
|
||||
if: github.ref_name == 'main' && github.repository == 'hpcaitech/ColossalAI' && contains(fromJson('["FrankLeeeee", "ver217", "feifeibear", "kurisusnowdeng"]'), github.actor)
|
||||
if: github.repository == 'hpcaitech/ColossalAI' && contains(fromJson('["FrankLeeeee", "ver217", "feifeibear", "kurisusnowdeng"]'), github.actor)
|
||||
name: Build and publish Python 🐍 distributions 📦 to Test PyPI
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 20
|
||||
|
@ -12,7 +12,8 @@ jobs:
|
|||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: '3.7.4'
|
||||
python-version: '3.7.12'
|
||||
- run: python setup.py sdist build
|
||||
# publish to PyPI if executed on the main branch
|
||||
# publish to Test PyPI if executed on the develop branch
|
||||
- name: Publish package to Test PyPI
|
||||
|
|
Loading…
Reference in New Issue