From 8f4f5d575a704336c764b1b42a6226caaa1af4b6 Mon Sep 17 00:00:00 2001 From: Shenghang Tsai Date: Wed, 29 Nov 2023 11:32:17 +0800 Subject: [PATCH] Use dedicated workflow for community (#10363) --- .github/workflows/community_release.yml | 36 +++++++++++++++++++++++++ .github/workflows/priv_release.yml | 7 +++-- 2 files changed, 39 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/community_release.yml diff --git a/.github/workflows/community_release.yml b/.github/workflows/community_release.yml new file mode 100644 index 00000000000..5e7cb494b32 --- /dev/null +++ b/.github/workflows/community_release.yml @@ -0,0 +1,36 @@ +name: Community Release + +on: + push: + branches: + - "community/*" + schedule: + # beijing: 6 pm. + # utc: 10 am. + - cron: "0 10 * * *" + workflow_dispatch: + inputs: + priv_branch: + required: false + default: "community" + +concurrency: + group: community-release-${{ github.ref }} + cancel-in-progress: true + +jobs: + release: + name: Release pip + permissions: + contents: read + pull-requests: write + uses: ./.github/workflows/release.yml + with: + is_priv: true + branch: ${{ inputs.priv_branch || 'community' }} + secrets: + ONEFLOW_PRIV_ORG: ${{ secrets.ONEFLOW_PRIV_ORG }} + ONEFLOW_PRIV_GH_TOKEN: ${{ secrets.ONEFLOW_PRIV_GH_TOKEN }} + ONEFLOW_PRIV_OSS_BUCKET: ${{ secrets.ONEFLOW_PRIV_OSS_BUCKET }} + OSS_ACCESS_KEY_ID: ${{ secrets.OSS_ACCESS_KEY_ID }} + OSS_ACCESS_KEY_SECRET: ${{ secrets.OSS_ACCESS_KEY_SECRET }} diff --git a/.github/workflows/priv_release.yml b/.github/workflows/priv_release.yml index 33e1a20b293..1459228db82 100644 --- a/.github/workflows/priv_release.yml +++ b/.github/workflows/priv_release.yml @@ -3,8 +3,7 @@ name: Priv Release on: push: branches: - - priv-release - - add-cu12-release + - "pro/*" schedule: # beijing: 12 pm. # utc: 4 am. @@ -13,7 +12,7 @@ on: inputs: priv_branch: required: false - default: "community" + default: "main" concurrency: group: priv-release-${{ github.ref }} @@ -28,7 +27,7 @@ jobs: uses: ./.github/workflows/release.yml with: is_priv: true - branch: ${{ inputs.priv_branch || 'community' }} + branch: ${{ inputs.priv_branch || 'main' }} secrets: ONEFLOW_PRIV_ORG: ${{ secrets.ONEFLOW_PRIV_ORG }} ONEFLOW_PRIV_GH_TOKEN: ${{ secrets.ONEFLOW_PRIV_GH_TOKEN }}