Skip to content

Commit 730566e

Browse files
committed
flutter upgrade
1 parent 12c312e commit 730566e

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

.github/workflows/build.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
name: build
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
paths-ignore:
6+
- '.github/workflows/**'
7+
- 'README.md'
8+
pull_request:
49

510
jobs:
611
build_ios:

.github/workflows/publish.yml

+3-6
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
jobs:
99
publish:
1010
name: Publish
11-
runs-on: ubuntu-latest
11+
runs-on: macos-latest
1212
steps:
1313
- uses: actions/checkout@v3
1414
- uses: subosito/flutter-action@v2
@@ -22,11 +22,8 @@ jobs:
2222
# Windows: %LOCALAPPDATA%/dart/pub-credentials.json
2323
CREDENTIALS: ${{ secrets.CREDENTIALS_JSON }}
2424
run: |
25-
if [ -z $PUB_CACHE ];then
26-
PUB_CACHE=~/.pub-cache
27-
fi
28-
mkdir -p $PUB_CACHE
29-
echo $CREDENTIALS > $PUB_CACHE/credentials.json
25+
mkdir -p ~/Library/Application\ Support/dart
26+
echo $CREDENTIALS > ~/Library/Application\ Support/dart/pub-credentials.json
3027
- run: flutter --version
3128
- run: flutter pub get
3229
- run: dart format --set-exit-if-changed .

0 commit comments

Comments
 (0)