We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2dcef91 commit efdf7d5Copy full SHA for efdf7d5
1 file changed
.github/workflows/publish.yml
@@ -13,6 +13,7 @@ permissions:
13
jobs:
14
publish:
15
runs-on: ubuntu-latest
16
+ timeout-minutes: 20
17
if: github.event_name == 'workflow_dispatch' || startsWith(github.event.release.tag_name, 'v')
18
steps:
19
- name: Checkout
@@ -36,8 +37,15 @@ jobs:
36
37
- name: Install dependencies
38
run: flutter pub get
39
40
+ - name: Verify OIDC is available
41
+ run: |
42
+ if [ -z "${ACTIONS_ID_TOKEN_REQUEST_URL:-}" ]; then
43
+ echo "OIDC token endpoint is not available. Check workflow permissions."
44
+ exit 1
45
+ fi
46
+
47
- name: Validate package
48
run: flutter pub publish --dry-run
49
50
- name: Publish package
- run: flutter pub publish -f
51
+ run: timeout 10m flutter pub publish -f
0 commit comments