Skip to content

Commit

Permalink
Merge pull request #502 from techcomrade/test_workload
Browse files Browse the repository at this point in the history
improve(gha): add workload instead of service account
  • Loading branch information
thaidmfinnick authored Jul 24, 2024
2 parents 9d670e0 + 260e816 commit 3947861
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 2 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/gcloud.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@

name: Test GCloud
on: workflow_dispatch

permissions:
id-token: write
contents: read

jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./mobile_app
steps:
- name: Checkout Github repo
uses: actions/checkout@v4

- name: Authen
id: auth
uses: google-github-actions/auth@v2
with:
project_id: fmecg-firebase-chat
workload_identity_provider: ${{ secrets.WORKLOAD_ID_PROVIDER }}
- name: Print
run: |
echo ${{ steps.auth.outputs.credentials_file_path }}
echo ${{ steps.auth.outputs.project_id }}
echo ${{ steps.auth.outputs.auth_token }}
echo ${{ steps.auth.outputs.access_token }}
# - 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
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 Donggg",
"Thai Dong",
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+6
version: 0.0.1+7

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

0 comments on commit 3947861

Please sign in to comment.