fix(ci): fix GitHub workflows failure by run 'flutter pub get' before running local development script

pull/2036/head
Ellet 9 months ago
parent 9fc3fa2f32
commit 5117246d69
No known key found for this signature in database
GPG Key ID: 40CCC70E96F82970
  1. 6
      .github/workflows/build.yml
  2. 6
      .github/workflows/main.yml
  3. 6
      .github/workflows/publish.yml

@ -24,12 +24,12 @@ jobs:
- name: 🔍 Verify Flutter installation - name: 🔍 Verify Flutter installation
run: flutter --version run: flutter --version
- name: 🚧 Enable local development environment (use the local packages)
run: dart ./scripts/enable_local_dev.dart
- name: 📥 Install Flutter dependencies - name: 📥 Install Flutter dependencies
run: flutter pub get run: flutter pub get
- name: 🚧 Enable local development environment (use the local packages)
run: dart ./scripts/enable_local_dev.dart
- name: 🌐 Build Flutter Web Application - name: 🌐 Build Flutter Web Application
run: flutter build web --release --verbose --dart-define=CI=true run: flutter build web --release --verbose --dart-define=CI=true
working-directory: ./example working-directory: ./example

@ -24,12 +24,12 @@ jobs:
- name: 🔍 Verify Flutter installation - name: 🔍 Verify Flutter installation
run: flutter --version run: flutter --version
- name: 🚧 Enable local development environment (use the local packages)
run: dart ./scripts/enable_local_dev.dart
- name: 📥 Install Flutter dependencies - name: 📥 Install Flutter dependencies
run: flutter pub get run: flutter pub get
- name: 🚧 Enable local development environment (use the local packages)
run: dart ./scripts/enable_local_dev.dart
- name: 📦 Install dart_quill_delta dependencies - name: 📦 Install dart_quill_delta dependencies
run: flutter pub get -C dart_quill_delta run: flutter pub get -C dart_quill_delta

@ -38,12 +38,12 @@ jobs:
- name: 🔍 Verify Flutter installation - name: 🔍 Verify Flutter installation
run: flutter --version run: flutter --version
- name: 🚧 Enable local development environment (use the local packages)
run: dart ./scripts/enable_local_dev.dart
- name: 📥 Install Flutter dependencies - name: 📥 Install Flutter dependencies
run: flutter pub get run: flutter pub get
- name: 🚧 Enable local development environment (use the local packages)
run: dart ./scripts/enable_local_dev.dart
# This is needed in order for the authentication to success # This is needed in order for the authentication to success
# dart pub token add https://pub.dev --env-var PUB_TOKEN # dart pub token add https://pub.dev --env-var PUB_TOKEN
# Requests to "https://pub.dev" will now be authenticated using the secret token stored in the environment variable "PUB_TOKEN". # Requests to "https://pub.dev" will now be authenticated using the secret token stored in the environment variable "PUB_TOKEN".

Loading…
Cancel
Save