diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index db1454907..ab83c7a43 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 diff --git a/.github/workflows/release_test.yml b/.github/workflows/release_test.yml index 1039e2349..cae88edaa 100644 --- a/.github/workflows/release_test.yml +++ b/.github/workflows/release_test.yml @@ -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