Skip to content

Commit 2963565

Browse files
authored
[test] fixed release workflow step (#464)
1 parent 292590e commit 2963565

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ jobs:
1212
- uses: actions/checkout@v2
1313
- uses: actions/setup-python@v2
1414
with:
15-
python-version: '3.7.4'
15+
python-version: '3.7.12'
16+
- run: python setup.py sdist build
1617
# publish to PyPI if executed on the main branch
1718
# publish to Test PyPI if executed on the develop branch
1819
- name: Publish package to PyPI

.github/workflows/release_test.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,16 @@ on: workflow_dispatch
44

55
jobs:
66
build-n-publish:
7-
if: github.ref_name == 'main' && github.repository == 'hpcaitech/ColossalAI' && contains(fromJson('["FrankLeeeee", "ver217", "feifeibear", "kurisusnowdeng"]'), github.actor)
7+
if: github.repository == 'hpcaitech/ColossalAI' && contains(fromJson('["FrankLeeeee", "ver217", "feifeibear", "kurisusnowdeng"]'), github.actor)
88
name: Build and publish Python 🐍 distributions 📦 to Test PyPI
99
runs-on: ubuntu-latest
1010
timeout-minutes: 20
1111
steps:
1212
- uses: actions/checkout@v2
1313
- uses: actions/setup-python@v2
1414
with:
15-
python-version: '3.7.4'
15+
python-version: '3.7.12'
16+
- run: python setup.py sdist build
1617
# publish to PyPI if executed on the main branch
1718
# publish to Test PyPI if executed on the develop branch
1819
- name: Publish package to Test PyPI

0 commit comments

Comments
 (0)