Skip to content

Resend verification code (#507) #177

Resend verification code (#507)

Resend verification code (#507) #177

Workflow file for this run

name: Release Coffeecard App
on:
push:
branches: [develop, production]
paths:
- android/**
- assets/**
- ios/**
- lib/**
- openapi/**
- .metadata
- .github/workflows/**
- pubspec.lock
- pubspec.yml
- .env.develop
- .env.production
jobs:
build_and_test:
uses: ./.github/workflows/build.yml
with:
storeArtifacts: true
secrets: inherit
dev_upload_ios:
name: Upload iOS build to Firebase App Distribution
runs-on: ubuntu-latest
needs: [build_and_test]
if: github.ref_name == 'develop'
steps:
- name: Download Artifact
uses: actions/[email protected]
with:
name: ios
- name: Firebase App Distribution
uses: wzieba/[email protected]
with:
appId: ${{ secrets.FIREBASE_IOS_APP_ID }}
token: ${{ secrets.FIREBASE_TOKEN }}
groups: analogio-devs
file: Analog.ipa
dev_upload_android:
name: Upload Android build to Firebase App Distribution
runs-on: ubuntu-latest
needs: [build_and_test]
if: github.ref_name == 'develop'
steps:
- name: Download artifact
uses: actions/[email protected]
with:
name: android
- name: Firebase App Distribution
uses: wzieba/[email protected]
with:
appId: ${{ secrets.FIREBASE_ANDROID_APP_ID }}
token: ${{ secrets.FIREBASE_TOKEN }}
groups: analogio-devs
file: app-development-release.apk
prod_release_ios:
name: Upload iOS build to App Store connect
runs-on: macos-latest
needs: [build_and_test]
if: github.ref_name == 'production'
steps:
- name: Download artifact
uses: actions/[email protected]
with:
name: ios
- name: Upload app to App Store Connect
env:
APP_STORE_CONNECT_USERNAME: ${{ secrets.APP_STORE_CONNECT_USERNAME }}
APP_STORE_CONNECT_PASSWORD: ${{ secrets.APP_STORE_CONNECT_PASSWORD }}
run: |
xcrun altool --upload-app -t ios -f "Analog.ipa" -u "$APP_STORE_CONNECT_USERNAME" -p "$APP_STORE_CONNECT_PASSWORD"
prod_release_android:
name: Upload Android build to Play Store
runs-on: ubuntu-latest
needs: [build_and_test]
if: github.ref_name == 'production'
steps:
- name: Download artifact
uses: actions/[email protected]
with:
name: android
- name: Sign Android appbundle
uses: r0adkll/sign-android-release@v1
id: sign_app
with:
releaseDirectory: .
signingKeyBase64: ${{ secrets.ANDROID_KEYSTORE }}
alias: ${{ secrets.ANDROID_KEY_ALIAS }}
keyStorePassword: ${{ secrets.ANDROID_KEYSTORE_PASSWORD }}
keyPassword: ${{ secrets.ANDROID_KEY_PASSWORD }}
- name: Upload to Google Play Store
uses: r0adkll/[email protected]
with:
serviceAccountJsonPlainText: ${{ secrets.PLAYSTORE_SERVICE_ACCOUNT_JSON }}
packageName: dk.analog.digitalclipcard
releaseFiles: ${{ steps.sign_app.outputs.signedReleaseFile }}
track: internal
status: draft
tag:
name: Git Tag version
runs-on: ubuntu-latest
needs: [build_and_test, prod_release_ios, prod_release_android]
if: ${{ needs.prod_release_ios.result == 'success' && needs.prod_release_android.result == 'success' }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Git Tag ${{ needs.build_and_test.outputs.version_tag }}
uses: anothrNick/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CUSTOM_TAG: ${{ needs.build_and_test.outputs.version_tag }}