Skip to content

Commit

Permalink
👷 misc(CD): set timeouts for release jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
welpo committed Nov 27, 2024
1 parent a78a7ba commit 3812d1e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ env:
jobs:
check-prerelease:
runs-on: ubuntu-24.04
timeout-minutes: 5
outputs:
is_prerelease: ${{ steps.check_tag.outputs.is_prerelease }}
steps:
Expand All @@ -29,6 +30,7 @@ jobs:
build:
needs: check-prerelease
timeout-minutes: 60
strategy:
matrix:
os: [macos-14, ubuntu-24.04, windows-2022]
Expand Down Expand Up @@ -77,6 +79,7 @@ jobs:

package:
needs: build
timeout-minutes: 15
runs-on: ubuntu-24.04
steps:
- name: Download all builds
Expand Down Expand Up @@ -130,6 +133,7 @@ jobs:

create-release:
needs: [package, check-prerelease]
timeout-minutes: 10
runs-on: ubuntu-24.04
environment:
name: ${{ needs.check-prerelease.outputs.is_prerelease == 'true' && 'testpypi' || 'pypi' }}
Expand Down

0 comments on commit 3812d1e

Please sign in to comment.