Update release_pypi_after_merge.yml

This commit is contained in:
Hanks 2025-05-30 16:54:27 +08:00 committed by GitHub
parent 374dcd4da9
commit 060102372e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -7,12 +7,14 @@ on:
- 'version.txt'
types:
- closed
permissions:
id-token: write
contents: read
jobs:
build-n-publish:
if: github.event_name == 'workflow_dispatch' || github.repository == 'hpcaitech/ColossalAI' && github.event.pull_request.merged == true && github.base_ref == 'main'
name: Build and publish Python 🐍 distributions 📦 to PyPI
runs-on: ubuntu-[self-hosted, ubuntu-latest]
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v2
@ -35,7 +37,7 @@ jobs:
notify:
name: Notify Lark via webhook
needs: build-n-publish
runs-on: [self-hosted, ubuntu-latest]
runs-on: ubuntu-latest
if: ${{ always() }}
steps:
- uses: actions/checkout@v2