Skip to content

Commit

Permalink
improve(gha): cache chaquopy python
Browse files Browse the repository at this point in the history
  • Loading branch information
thaidmfinnick committed Jul 25, 2024
1 parent bd3acfb commit fe6b6b4
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 20 deletions.
34 changes: 16 additions & 18 deletions .github/workflows/auto_publish_app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,6 @@ jobs:
distribution: 'corretto'
java-version: '17'
cache: gradle
# - uses: actions/setup-python@v5
# with:
# python-version: '3.12.3'
# cache: 'pip'

- name: Setup Flutter
uses: subosito/flutter-action@v2
Expand All @@ -61,23 +57,25 @@ jobs:
- name: Build release
run: flutter build appbundle --no-tree-shake-icons

- name: Test cache folder
run: |
cd $HOME/.cache/chaquopy
ls -a
- name: Cache/Get Chaquopy
uses: actions/cache@v3
with:
path: ~/.cache/chaquopy/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
# - name: Authen
# id: auth
# uses: google-github-actions/auth@v2
# with:
# workload_identity_provider: ${{ secrets.WORKLOAD_ID_PROVIDER }}
# service_account: ${{ secrets.SERVICE_ACCOUNT_EMAIL }}
# - name: Publish to Play Console
# uses: r0adkll/upload-google-play@v1
# with:
# serviceAccountJsonPlainText: ${{ secrets.GOOGLE_SERVICES_ACCOUNT_JSON }}
# # serviceAccountJson: ${{ steps.auth.outputs.credentials_file_path }}
# # serviceAccountJsonT: ${{ steps.auth.outputs.credentials_file_path }}
# packageName: vn.hust.electrospic
# releaseFiles: mobile_app/build/app/outputs/bundle/release/app-release.aab
# track: alpha
# status: completed
- name: Publish to Play Console
uses: r0adkll/upload-google-play@v1
with:
serviceAccountJsonPlainText: ${{ secrets.GOOGLE_SERVICES_ACCOUNT_JSON }}
# serviceAccountJson: ${{ steps.auth.outputs.credentials_file_path }}
packageName: vn.hust.electrospic
releaseFiles: mobile_app/build/app/outputs/bundle/release/app-release.aab
track: alpha
status: completed
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class _UserProfileScreenState extends State<UserProfileScreen> {
),
const SizedBox(height: 5),
Text(
"Thai Dongggg",
"Thai Dongg",
style: const TextStyle(
fontWeight: FontWeight.bold,
fontSize: 18,
Expand Down
2 changes: 1 addition & 1 deletion mobile_app/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 0.0.1+8
version: 0.0.1+9

environment:
sdk: ">=3.0.0 <4.0.0"
Expand Down

0 comments on commit fe6b6b4

Please sign in to comment.