This commit is contained in:
Gergely Hegedus 2024-07-15 17:22:17 +03:00
commit c63298b02f
70 changed files with 1977 additions and 0 deletions

22
.github/workflows/shorebird_patch.yaml vendored Normal file
View file

@ -0,0 +1,22 @@
name: Shorebird Patch
on:
workflow_dispatch:
inputs:
version_to_patch:
description: 'Version to patch: format: 1.0.0+7'
type: string
jobs:
shorebird_patch:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: 🐦 Setup Shorebird
uses: shorebirdtech/setup-shorebird@v1
- name: Create Patch
env:
SHOREBIRD_TOKEN: ${{ secrets.SHOREBIRD_TOKEN }}
run: |
echo y | shorebird patch --platforms=android --release-version=${{ github.event.inputs.version_to_patch }}

View file

@ -0,0 +1,25 @@
name: Shorebird Release
on:
release:
types: [ published ]
jobs:
shorebird_release:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: 🐦 Setup Shorebird
uses: shorebirdtech/setup-shorebird@v1
- name: Create release
env:
SHOREBIRD_TOKEN: ${{ secrets.SHOREBIRD_TOKEN }}
SIGNING_KEYSTORE_BASE64: ${{ secrets.SIGNING_KEYSTORE_BASE64 }}
SIGNING_PROPERTIES: ${{ secrets.SIGNING_PROPERTIES }}
run: |
echo "$SIGNING_KEYSTORE_BASE64" | base64 --decode > android/app/experiment.jks
echo "$SIGNING_PROPERTIES" > android/signing.properties
flutter_version=`cat .fvmrc | grep -o "flutter.*" | grep -o "[0-9.]*"`
echo y | shorebird release android --flutter-version $flutter_version -- --dart-define-from-file=.env/app.json --obfuscate --split-debug-info=build/outputs/symbols