File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 88 name : Build & Release
99 runs-on : windows-latest
1010 steps :
11- - uses : actions/checkout@v3
11+ - uses : actions/checkout@v4
1212 - uses : subosito/flutter-action@v2
1313 with :
1414 channel : ' stable'
1515 cache : true
1616
17+ # https://github.com/subosito/flutter-action/issues/278
18+ - name : Export pub environment variable
19+ run : |
20+ if [ "$RUNNER_OS" == "Windows" ]; then
21+ echo "PUB_CACHE=$LOCALAPPDATA\\Pub\\Cache" >> $GITHUB_ENV
22+ fi
23+ shell : bash
24+
1725 - run : echo "NEW_VERSION=${{ github.ref_name }}" | Out-File -FilePath $env:GITHUB_ENV -Append
1826
1927 - name : Bump MyAppVersion in Inno Setup
2331
2432 - run : flutter gen-l10n
2533
26- - run : flutter pub cache clean
27-
2834 - run : dart run build_runner build --delete-conflicting-outputs
2935
3036 - run : flutter build windows --build-name=${{ env.NEW_VERSION }} --build-number=1
You can’t perform that action at this time.
0 commit comments