Skip to content

Commit

Permalink
Merge branch 'main' into update_zenroom2
Browse files Browse the repository at this point in the history
  • Loading branch information
phoebus-84 authored Feb 14, 2025
2 parents 391703b + 326f0ed commit 00c25c4
Show file tree
Hide file tree
Showing 117 changed files with 633 additions and 13,114 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# need to be move in Forkbomb/ship-capacitor-apps
name: '🧪 and 📢 and 📲'

on:
Expand Down
91 changes: 0 additions & 91 deletions .github/workflows/build_alpha_release.yml

This file was deleted.

64 changes: 13 additions & 51 deletions .github/workflows/distribute.yml
Original file line number Diff line number Diff line change
@@ -1,57 +1,19 @@
name: '📢 and 📲'
name: 🔥📲 Publish on Firebase Distribution

on:
pull_request:
branches: ['main']

jobs:
distribute:
runs-on: ubuntu-latest
environment: test
steps:
- uses: dyne/pnpm@main
with:
submodules: true
node-version: '20.11.1'
- uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Setup java
uses: actions/setup-java@v4
with:
distribution: zulu
java-version: '17'
- name: Decode Keystore File
uses: timheuer/base64-to-file@v1
id: android_keystore
with:
fileName: android_keystore.keystore
encodedString: ${{ secrets.ANDROID_KEYSTORE_FILE }}
- name: Decode Service Account File
uses: timheuer/base64-to-file@v1
id: service_account
with:
fileName: play-store-credentials.json
encodedString: ${{ secrets.FIREBASE_SERVICE_ACCOUNT }}
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0'
bundler-cache: true

- uses: maierj/fastlane-action@v3.1.0
env:
KEYSTORE_PATH: ${{ steps.android_keystore.outputs.filePath }}
SERVICE_ACCOUNT_PATH: ${{ steps.service_account.outputs.filePath }}
KEYSTORE_KEY_ALIAS: ${{ secrets.KEYSTORE_KEY_ALIAS }}
KEYSTORE_KEY_PASSWORD: ${{ secrets.KEYSTORE_KEY_PASSWORD }}
KEYSTORE_STORE_PASSWORD: ${{ secrets.KEYSTORE_STORE_PASSWORD }}
FIREBASE_APP_ID: ${{ secrets.FIREBASE_APP_ID }}
PULL_REQUEST_NUMBER: ${{ github.event.number }}
PULL_REQUEST_TITLE: ${{ github.event.pull_request.title }}
PUBLIC_BACKEND_URL: ${{ vars.PUBLIC_BACKEND_URL }}
with:
lane: distribute
uses: ForkbombEu/ship-capacitor-apps/.github/workflows/ship_android.yml@main
with:
backend-url: ${{ github.env.test.vars.PUBLIC_BACKEND_URL }}
lane: distribute
secrets:
keystore-file: ${{ secrets.ANDROID_KEYSTORE_FILE }}
service-account: ${{ secrets.FIREBASE_SERVICE_ACCOUNT }}
keystore-alias: ${{ secrets.KEYSTORE_KEY_ALIAS }}
keystore-password: ${{ secrets.KEYSTORE_STORE_PASSWORD }}
keystore-key-password: ${{ secrets.KEYSTORE_KEY_PASSWORD }}
firebase-app-id: ${{ secrets.FIREBASE_APP_ID }}
19 changes: 19 additions & 0 deletions .github/workflows/publish_android_alpha_version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: 🤖🌈 Publish android alpha version

on:
pull_request:
branches: ['main']

jobs:
distribute:
uses: ForkbombEu/ship-capacitor-apps/.github/workflows/ship_android.yml@main
with:
backend-url: ${{ github.env.test.vars.PUBLIC_BACKEND_URL }}
lane: alpha
package-name: com.didroom.verifier
secrets:
keystore-file: ${{ secrets.PLAYSTORE_KEYSTORE }}
service-account: ${{ secrets.PLAYSTORE_SERVICE_ACCOUNT }}
keystore-alias: ${{ secrets.PLAYSTORE_KEYSTORE_ALIAS }}
keystore-password: ${{ secrets.PLAYSTORE_KEYSTORE_PASSWORD }}
keystore-key-password: ${{ secrets.PLAYSTORE_KEYSTORE_KEY_PASSWORD }}
72 changes: 72 additions & 0 deletions .github/workflows/publish_android_beta_version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: 🤖🌈 Publish android alpha version

on:
push:
branches: ['main']

jobs:
distribute:
uses: ForkbombEu/ship-capacitor-apps/.github/workflows/ship_android.yml@main
with:
backend-url: ${{ github.env.test.vars.PUBLIC_BACKEND_URL }}
lane: beta
package-name: com.didroom.verifier
secrets:
keystore-file: ${{ secrets.PLAYSTORE_KEYSTORE }}
service-account: ${{ secrets.PLAYSTORE_SERVICE_ACCOUNT }}
keystore-alias: ${{ secrets.PLAYSTORE_KEYSTORE_ALIAS }}
keystore-password: ${{ secrets.PLAYSTORE_KEYSTORE_PASSWORD }}
keystore-key-password: ${{ secrets.PLAYSTORE_KEYSTORE_KEY_PASSWORD }}

semantic-release:
permissions:
contents: write
needs: distribute
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
outputs:
release: ${{ steps.tag_release.outputs.release }}
version: ${{ steps.tag_release.outputs.version }}
steps:
- uses: dyne/pnpm@main
with:
submodules: true
node-version: '20.11.1'
- name: Tag release
id: tag_release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
npx semantic-release >semantic-release.log
cat semantic-release.log
if [[ `git tag --points-at HEAD` == "" ]]; then
echo "release=False" >> $GITHUB_OUTPUT
else
echo "release=True" >> $GITHUB_OUTPUT
awk '/Published release/ { printf("version=v%s\n",$8) }' semantic-release.log >> $GITHUB_OUTPUT
fi
echo "Result"
cat $GITHUB_OUTPUT
draft-release:
permissions:
contents: write
needs: semantic-release
runs-on: ubuntu-latest
if: ${{ needs.semantic-release.outputs.release == 'True' }}
steps:
- name: download binary artifacts
uses: actions/download-artifact@v4
with:
path: |
release
- name: relase all binary artifacts
uses: softprops/action-gh-release@v1
with:
files: |
release/artifact/*
draft: false
prerelease: false
fail_on_unmatched_files: true
generate_release_notes: true
tag_name: ${{ needs.semantic-release.outputs.version }}
23 changes: 23 additions & 0 deletions .github/workflows/publish_ios_production.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: 🤖🌈 Submit for review on App Store

on:
workflow_dispatch:

jobs:
distribute_ios:
uses: ForkbombEu/ship-capacitor-apps/.github/workflows/ship_ios.yml@main
with:
backend-url: ${{ vars.PUBLIC_BACKEND_URL }}
lane: ios production
DEMO_USER: ${{ github.env.ios.vars.USER_EMAIL }}
DEMO_PASSWORD: ${{ github.env.ios.vars.USER_PASSWORD }}
secrets:
APP_STORE_CONNECT_TEAM_ID: ${{ secrets.APP_STORE_CONNECT_TEAM_ID }}
BUNDLE_IDENTIFIER: com.didroom.verifier
BUILD_CERTIFICATE_BASE64: ${{ secrets.IOS_BUILD_CERTIFICATE }}
BUILD_PROVISION_PROFILE_BASE64: ${{ secrets.IOS_BUILD_PROVISION_PROFILE }}
APPLE_KEY_ID: ${{ secrets.APPLE_KEY_ID }}
APPLE_ISSUER_ID: ${{ secrets.APPLE_ISSUER_ID }}
APPLE_KEY_CONTENT: ${{ secrets.APPLE_KEY_CONTENT }}
APPLE_PROFILE_NAME: ${{ secrets.APPLE_PROFILE_NAME }}
P12_PASSWORD: ${{ secrets.P12_PASSWORD }}
18 changes: 18 additions & 0 deletions .github/workflows/publish_playstore.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: 🤖🌈 Publish on android play store in production

on:
workflow_dispatch:

jobs:
distribute_android:
uses: ForkbombEu/ship-capacitor-apps/.github/workflows/ship_android.yml@main
with:
backend-url: ${{ vars.PUBLIC_BACKEND_URL }}
lane: production
package-name: com.didroom.verifier
secrets:
keystore-file: ${{ secrets.PLAYSTORE_KEYSTORE }}
service-account: ${{ secrets.PLAYSTORE_SERVICE_ACCOUNT }}
keystore-alias: ${{ secrets.PLAYSTORE_KEYSTORE_ALIAS }}
keystore-password: ${{ secrets.PLAYSTORE_KEYSTORE_PASSWORD }}
keystore-key-password: ${{ secrets.PLAYSTORE_KEYSTORE_KEY_PASSWORD }}
29 changes: 29 additions & 0 deletions .github/workflows/testflight_distribution.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: 🍏✨ Publish on TestFlight

on:
pull_request:
branches: ['main']

jobs:
testflight:
uses: ForkbombEu/ship-capacitor-apps/.github/workflows/ship_ios.yml@main
with:
backend-url: ${{github.env.test.vars.PUBLIC_BACKEND_URL}}
lane: ios testflight
initial-build-number: "3"
DEMO_USER: ${{github.env.test.vars.DEMO_USER}}
DEMO_PASSWORD: ${{github.env.test.vars.DEMO_PASSWORD}}
CONTACT_EMAIL: info@forkbomb.eu
CONTACT_FIRST_NAME: Andrea
CONTACT_LAST_NAME: D'Intino
CONTACT_PHONE: "+4521627918"
secrets:
APP_STORE_CONNECT_TEAM_ID: ${{ secrets.APP_STORE_CONNECT_TEAM_ID }}
BUNDLE_IDENTIFIER: com.didroom.verifier
BUILD_CERTIFICATE_BASE64: ${{ secrets.IOS_BUILD_CERTIFICATE }}
BUILD_PROVISION_PROFILE_BASE64: ${{ secrets.IOS_BUILD_PROVISION_PROFILE }}
APPLE_KEY_ID: ${{ secrets.APPLE_KEY_ID }}
APPLE_ISSUER_ID: ${{ secrets.APPLE_ISSUER_ID }}
APPLE_KEY_CONTENT: ${{ secrets.APPLE_KEY_CONTENT }}
APPLE_PROFILE_NAME: ${{ secrets.APPLE_PROFILE_NAME }}
P12_PASSWORD: ${{ secrets.P12_PASSWORD }}
Loading

0 comments on commit 00c25c4

Please sign in to comment.