Skip to content

Commit 1b7282e

Browse files
committed
Update credential filepath for workflows
1 parent dbbd326 commit 1b7282e

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

.github/workflows/check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
- develop
88

99
env:
10-
CREDENTIALS_PATH: /Users/runner/hostedtoolcache/flutter/.pub-cache
10+
CREDENTIALS_PATH: /Users/runner/Library/Application Support/dart/.pub-credentials.json
1111

1212
jobs:
1313
check:

.github/workflows/publish.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,19 @@ name: Release workflow
22

33
on:
44
workflow_dispatch:
5-
release:
6-
types: [published]
5+
push:
6+
tags:
7+
- '[0-9]+.[0-9]+.[0-9]+*'
78

89
env:
910
CREDENTIALS_JSON: ${{secrets.CREDENTIALS_JSON}}
10-
CREDENTIALS_PATH: /Users/runner/hostedtoolcache/flutter/.pub-cache
11+
CREDENTIALS_PATH: /Users/runner/.config/dart
1112

1213
jobs:
13-
release:
14+
publish:
1415
runs-on: macos-latest
16+
permissions:
17+
id-token: write
1518
steps:
1619
- uses: actions/checkout@v3
1720
- uses: actions/setup-java@v3
@@ -23,6 +26,6 @@ jobs:
2326
flutter-version: '3.10.5'
2427

2528
- run: flutter pub get
26-
- run: mkdir -p $CREDENTIALS_PATH && echo $CREDENTIALS_JSON > $CREDENTIALS_PATH/credentials.json
29+
- run: mkdir -p $CREDENTIALS_PATH && echo $CREDENTIALS_JSON > $CREDENTIALS_PATH/pub-credentials.json
2730

2831
- run: flutter pub publish -f

0 commit comments

Comments
 (0)