Skip to content

Commit 1afc9e5

Browse files
committed
publish
1 parent 6fcc2cc commit 1afc9e5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

template/.github/workflows/{% if not is_frozen_executable %}publish.yaml{% endif %}.jinja

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ permissions:
1919
jobs:
2020
get-values:
2121
name: Get Values
22+
timeout-minutes: {% endraw %}{{ gha_short_timeout_minutes }}{% raw %}
2223
runs-on: {% endraw %}{{ gha_linux_runner }}{% raw %}
2324
outputs:
2425
package-version: ${{ steps.extract-package-version.outputs.package_version }}
@@ -62,6 +63,7 @@ jobs:
6263
JOB_MATCHING_DEV_ENV: true
6364

6465
runs-on: ${{ matrix.os }}
66+
timeout-minutes: {% endraw %}{{ gha_medium_timeout_minutes }}{% raw %}
6567
env:
6668
UV_PYTHON: ${{ matrix.python-version }}
6769

@@ -82,6 +84,7 @@ jobs:
8284

8385
build:
8486
needs: [ test ]
87+
timeout-minutes: {% endraw %}{{ gha_medium_timeout_minutes }}{% raw %}
8588
runs-on: {% endraw %}{{ gha_linux_runner }}{% raw %}
8689

8790
steps:
@@ -119,6 +122,7 @@ jobs:
119122

120123
publish-to-staging:
121124
name: Publish Python distribution to Staging Package Registry
125+
timeout-minutes: {% endraw %}{{ gha_medium_timeout_minutes }}{% raw %}
122126
needs: [ build ]
123127
runs-on: {% endraw %}{{ gha_linux_runner }}{% raw %}
124128
environment:
@@ -156,6 +160,7 @@ jobs:
156160

157161
install-from-staging:
158162
name: Install package from staging registry
163+
timeout-minutes: {% endraw %}{{ gha_medium_timeout_minutes }}{% raw %}
159164
needs: [ publish-to-staging, get-values ]
160165
strategy:
161166
matrix:
@@ -243,6 +248,7 @@ jobs:
243248
create-tag:
244249
name: Create the git tag
245250
if: ${{ fromJSON(github.event.inputs.publish_to_primary) }}
251+
timeout-minutes: {% endraw %}{{ gha_medium_timeout_minutes }}{% raw %}
246252
needs: [ install-from-staging ]
247253
permissions:
248254
contents: write # needed to push the tag
@@ -263,6 +269,7 @@ jobs:
263269
name: Publish Python distribution to Primary Package Registry
264270
if: ${{ fromJSON(github.event.inputs.publish_to_primary) }}
265271
needs: [ create-tag ]
272+
timeout-minutes: {% endraw %}{{ gha_medium_timeout_minutes }}{% raw %}
266273
runs-on: {% endraw %}{{ gha_linux_runner }}{% raw %}
267274
environment:
268275
name: pypi
@@ -313,6 +320,7 @@ jobs:
313320
JOB_MATCHING_DEV_ENV: true
314321

315322
runs-on: ${{ matrix.os }}
323+
timeout-minutes: {% endraw %}{{ gha_medium_timeout_minutes }}{% raw %}
316324
env:
317325
UV_PYTHON: ${{ matrix.python-version }}
318326

0 commit comments

Comments
 (0)