mirror of
https://github.com/RxReader/wechat_kit.git
synced 2025-05-20 00:36:40 +08:00
flutter upgrade
This commit is contained in:
19
.github/workflows/publish.yml
vendored
19
.github/workflows/publish.yml
vendored
@ -8,18 +8,23 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
publish:
|
publish:
|
||||||
name: Publish
|
name: Publish
|
||||||
runs-on: ubuntu-latest
|
runs-on: macos-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: subosito/flutter-action@v2
|
- uses: subosito/flutter-action@v2
|
||||||
with:
|
with:
|
||||||
channel: 'stable'
|
channel: 'stable'
|
||||||
|
- name: Run pub.dev/inject-credentials@shell
|
||||||
|
env:
|
||||||
|
# Mac: ~/Library/Application\ Support/dart/pub-credentials.json
|
||||||
|
# Linux: $HOME/.config/dart/pub-credentials.json
|
||||||
|
# Windows: %APPDATA%/dart/pub-credentials.json
|
||||||
|
# Windows: %LOCALAPPDATA%/dart/pub-credentials.json
|
||||||
|
CREDENTIALS: ${{ secrets.CREDENTIALS_JSON }}
|
||||||
|
run: |
|
||||||
|
mkdir -p ~/Library/Application\ Support/dart
|
||||||
|
echo $CREDENTIALS > ~/Library/Application\ Support/dart/pub-credentials.json
|
||||||
- run: flutter --version
|
- run: flutter --version
|
||||||
- run: flutter pub get
|
- run: flutter pub get
|
||||||
- run: dart format --set-exit-if-changed .
|
- run: dart format --set-exit-if-changed .
|
||||||
- uses: sakebook/actions-flutter-pub-publisher@v1.3.0
|
- run: echo "y" | flutter pub publish
|
||||||
with:
|
|
||||||
credential: ${{ secrets.CREDENTIALS_JSON }}
|
|
||||||
flutter_package: true
|
|
||||||
skip_test: true
|
|
||||||
dry_run: false
|
|
||||||
|
Reference in New Issue
Block a user