forked from eatvio/eatvio_app
feat: Implement Gitea Actions CI/CD workflows for Flutter Android app testing, building, and TestFlight deployment.
This commit is contained in:
@@ -12,10 +12,10 @@ jobs:
|
|||||||
runs-on: [ dev-office ]
|
runs-on: [ dev-office ]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: github.com/actions/checkout@v3
|
- uses: https://github.com/actions/checkout@v3
|
||||||
|
|
||||||
- name: Set up JDK
|
- name: Set up JDK
|
||||||
uses: github.com/actions/setup-java@v3
|
uses: https://github.com/actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
distribution: "zulu"
|
distribution: "zulu"
|
||||||
java-version: ${{ env.java_version }}
|
java-version: ${{ env.java_version }}
|
||||||
@@ -44,7 +44,7 @@ jobs:
|
|||||||
apt-get install -y jq
|
apt-get install -y jq
|
||||||
|
|
||||||
- id: flutter-action
|
- id: flutter-action
|
||||||
uses: github.com/actions/flutter-action@v2
|
uses: https://github.com/actions/flutter-action@v2
|
||||||
with:
|
with:
|
||||||
channel: ${{ env.flutter_channel }}
|
channel: ${{ env.flutter_channel }}
|
||||||
flutter-version: ${{ env.flutter_version }}
|
flutter-version: ${{ env.flutter_version }}
|
||||||
@@ -79,7 +79,7 @@ jobs:
|
|||||||
echo "APK_NAME=$APK_NAME" >> $GITHUB_ENV
|
echo "APK_NAME=$APK_NAME" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Upload APK artifact
|
- name: Upload APK artifact
|
||||||
uses: github.com/actions/upload-artifact@v3
|
uses: https://github.com/actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: ${{ env.APK_NAME }}
|
name: ${{ env.APK_NAME }}
|
||||||
path: ${{ env.APK_NAME }}
|
path: ${{ env.APK_NAME }}
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ jobs:
|
|||||||
runs-on: [ dev-office-flutter ]
|
runs-on: [ dev-office-flutter ]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: github.com/actions/checkout@v3
|
- uses: https://github.com/actions/checkout@v3
|
||||||
|
|
||||||
- name: Set up Android environment variables
|
- name: Set up Android environment variables
|
||||||
id: "android-env-setup"
|
id: "android-env-setup"
|
||||||
@@ -52,7 +52,7 @@ jobs:
|
|||||||
# echo "APK_NAME=$APK_NAME" >> $GITHUB_ENV
|
# echo "APK_NAME=$APK_NAME" >> $GITHUB_ENV
|
||||||
|
|
||||||
# - name: Upload APK artifact
|
# - name: Upload APK artifact
|
||||||
# uses: github.com/actions/upload-artifact@v3
|
# uses: https://github.com/actions/upload-artifact@v3
|
||||||
# with:
|
# with:
|
||||||
# name: ${{ env.APK_NAME }}
|
# name: ${{ env.APK_NAME }}
|
||||||
# path: ${{ env.APK_NAME }}
|
# path: ${{ env.APK_NAME }}
|
||||||
|
|||||||
@@ -9,10 +9,10 @@ jobs:
|
|||||||
runs-on: [macos-arm64]
|
runs-on: [macos-arm64]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: github.com/actions/checkout@v2
|
uses: https://github.com/actions/checkout@v2
|
||||||
|
|
||||||
- name: Checkout env repository
|
- name: Checkout env repository
|
||||||
uses: github.com/actions/checkout@v2
|
uses: https://github.com/actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
repository: mso7nueh/eatvio_app_env
|
repository: mso7nueh/eatvio_app_env
|
||||||
path: env_repo
|
path: env_repo
|
||||||
|
|||||||
@@ -14,10 +14,10 @@ jobs:
|
|||||||
runs-on: [ dev-office ]
|
runs-on: [ dev-office ]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: github.com/actions/checkout@v3
|
- uses: https://github.com/actions/checkout@v3
|
||||||
|
|
||||||
- name: Checkout env repository
|
- name: Checkout env repository
|
||||||
uses: github.com/actions/checkout@v3
|
uses: https://github.com/actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
repository: mso7nueh/eatvio_app_env
|
repository: mso7nueh/eatvio_app_env
|
||||||
path: env_repo
|
path: env_repo
|
||||||
@@ -62,7 +62,7 @@ jobs:
|
|||||||
key: ${{ runner.os }}-cache-sdk
|
key: ${{ runner.os }}-cache-sdk
|
||||||
|
|
||||||
- name: Set up JDK
|
- name: Set up JDK
|
||||||
uses: github.com/actions/setup-java@v3
|
uses: https://github.com/actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
distribution: "zulu"
|
distribution: "zulu"
|
||||||
java-version: ${{ env.java_version }}
|
java-version: ${{ env.java_version }}
|
||||||
@@ -100,7 +100,7 @@ jobs:
|
|||||||
echo "ANDROID_HOME=${{ env.my_local_cache_dir }}Android/Sdk" >> $GITHUB_ENV
|
echo "ANDROID_HOME=${{ env.my_local_cache_dir }}Android/Sdk" >> $GITHUB_ENV
|
||||||
|
|
||||||
- id: flutter-action
|
- id: flutter-action
|
||||||
uses: github.com/actions/flutter-action@v2
|
uses: https://github.com/actions/flutter-action@v2
|
||||||
with:
|
with:
|
||||||
channel: ${{ env.flutter_channel }}
|
channel: ${{ env.flutter_channel }}
|
||||||
flutter-version: ${{ env.flutter_version }}
|
flutter-version: ${{ env.flutter_version }}
|
||||||
@@ -220,7 +220,7 @@ jobs:
|
|||||||
echo "APK_NAME=$APK_NAME" >> $GITHUB_ENV
|
echo "APK_NAME=$APK_NAME" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Upload APK artifact
|
- name: Upload APK artifact
|
||||||
uses: github.com/actions/upload-artifact@v3
|
uses: https://github.com/actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: ${{ env.APK_NAME }}
|
name: ${{ env.APK_NAME }}
|
||||||
path: ${{ env.APK_NAME }}
|
path: ${{ env.APK_NAME }}
|
||||||
|
|||||||
Reference in New Issue
Block a user