Skip to content

Commit

Permalink
Use dedicated workflow for community (#10363)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackalcooper authored Nov 29, 2023
1 parent 44b4ff3 commit 8f4f5d5
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 4 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/community_release.yml
Original file line number Diff line number Diff line change
@@ -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 }}
7 changes: 3 additions & 4 deletions .github/workflows/priv_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ name: Priv Release
on:
push:
branches:
- priv-release
- add-cu12-release
- "pro/*"
schedule:
# beijing: 12 pm.
# utc: 4 am.
Expand All @@ -13,7 +12,7 @@ on:
inputs:
priv_branch:
required: false
default: "community"
default: "main"

concurrency:
group: priv-release-${{ github.ref }}
Expand All @@ -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 }}
Expand Down

0 comments on commit 8f4f5d5

Please sign in to comment.