2024-03-04 12:42:46 +01:00
|
|
|
name: Release
|
2023-05-02 16:50:07 +02:00
|
|
|
|
|
|
|
on:
|
2024-01-22 09:29:57 +01:00
|
|
|
workflow_dispatch:
|
2023-05-02 16:50:07 +02:00
|
|
|
push:
|
2024-01-22 09:29:57 +01:00
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
- dev
|
2024-01-29 03:19:56 +01:00
|
|
|
paths:
|
2024-03-04 12:42:46 +01:00
|
|
|
- ".github/workflows/release.yml"
|
2024-01-29 03:19:56 +01:00
|
|
|
- "android/**"
|
|
|
|
- "assets/**"
|
|
|
|
- "lib/**"
|
|
|
|
- "pubspec.yaml"
|
2024-02-01 02:57:15 +01:00
|
|
|
|
2023-05-02 16:50:07 +02:00
|
|
|
jobs:
|
|
|
|
release:
|
2024-03-04 12:42:46 +01:00
|
|
|
name: Release
|
2023-05-02 16:50:07 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-03-04 12:42:46 +01:00
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v4
|
2023-05-02 16:50:07 +02:00
|
|
|
with:
|
2024-03-04 12:42:46 +01:00
|
|
|
fetch-depth: 0
|
|
|
|
|
|
|
|
- name: Setup Java
|
|
|
|
run: echo "JAVA_HOME=$JAVA_HOME_17_X64" >> $GITHUB_ENV
|
2024-01-22 09:29:57 +01:00
|
|
|
|
2024-03-04 12:42:46 +01:00
|
|
|
- name: Setup Node.js
|
2024-02-18 22:58:29 +01:00
|
|
|
uses: actions/setup-node@v4
|
|
|
|
with:
|
2024-03-04 12:42:46 +01:00
|
|
|
node-version: "lts/*"
|
|
|
|
cache: 'npm'
|
2024-02-18 22:58:29 +01:00
|
|
|
|
2024-03-04 12:42:46 +01:00
|
|
|
- name: Set up Flutter
|
|
|
|
uses: subosito/flutter-action@v2
|
2023-05-02 16:50:07 +02:00
|
|
|
with:
|
|
|
|
channel: "stable"
|
2024-08-27 16:01:41 +02:00
|
|
|
flutter-version: 3.24.x
|
2024-01-22 09:29:57 +01:00
|
|
|
|
2024-03-04 12:42:46 +01:00
|
|
|
- name: Install dependencies
|
2024-07-13 12:04:43 +02:00
|
|
|
run: npm ci
|
2024-01-22 09:29:57 +01:00
|
|
|
|
2024-03-04 12:42:46 +01:00
|
|
|
- name: Get dependencies
|
2023-05-02 16:50:07 +02:00
|
|
|
run: flutter pub get
|
2024-03-04 12:42:46 +01:00
|
|
|
|
|
|
|
- name: Generate translations
|
2024-02-12 00:22:25 +01:00
|
|
|
run: dart run slang
|
2024-03-04 12:42:46 +01:00
|
|
|
|
|
|
|
- name: Generate code files
|
2023-11-11 11:14:54 +01:00
|
|
|
run: dart run build_runner build --delete-conflicting-outputs
|
2024-01-22 09:29:57 +01:00
|
|
|
|
2024-03-04 12:42:46 +01:00
|
|
|
- name: Release
|
2024-02-01 02:57:15 +01:00
|
|
|
env:
|
2024-03-04 05:51:54 +01:00
|
|
|
GITHUB_TOKEN: ${{ secrets.REPOSITORY_PUSH_ACCESS }}
|
2024-02-01 02:57:15 +01:00
|
|
|
signingKey: "keystore.jks"
|
2023-05-02 16:50:07 +02:00
|
|
|
keyStorePassword: ${{ secrets.SIGNING_KEYSTORE_PASSWORD }}
|
|
|
|
keyAlias: ${{ secrets.SIGNING_KEY_ALIAS }}
|
|
|
|
keyPassword: ${{ secrets.SIGNING_KEY_PASSWORD }}
|
2024-02-01 02:57:15 +01:00
|
|
|
run: |
|
|
|
|
echo "${{ secrets.SIGNING_KEYSTORE }}" | base64 --decode > android/app/keystore.jks
|
|
|
|
npx semantic-release
|