From f9b00c3f5a8f0a5c68e9902dd947b0f5aa1e44f5 Mon Sep 17 00:00:00 2001 From: camarm-dev Date: Sat, 6 Jul 2024 22:41:31 +0200 Subject: [PATCH] feat(workflow): android build --- .github/workflows/build.android.yml | 37 +++++++++++++++++++ .../{build.yml => build.desktop.yml} | 2 +- 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/build.android.yml rename .github/workflows/{build.yml => build.desktop.yml} (99%) diff --git a/.github/workflows/build.android.yml b/.github/workflows/build.android.yml new file mode 100644 index 0000000..88acd03 --- /dev/null +++ b/.github/workflows/build.android.yml @@ -0,0 +1,37 @@ +name: 'Build Remède android application' + +on: + push: + branches: + - dev + +jobs: + build-android: + permissions: + contents: write + runs-on: 'ubuntu-latest' + steps: + - uses: sparkfabrik/android-build-action@v1.5.0 + with: + project-path: app/android + output-path: builds/remede.apk + browserstack-upload: true + ruby-version: "2.7.5" + bundler-version: "2.3.26" + fastlane-env: "debug" + + - name: Commit changes + run: | + git config --local user.name actions-user + git config --local user.email "actions@github.com" + git config pull.rebase true + git add builds/* + git commit -m "chore(binaries): added latest Remède binaries" + git pull + + - name: Push changes # push the output folder to your repo + uses: ad-m/github-push-action@master + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + force: true + branch: 'dev' diff --git a/.github/workflows/build.yml b/.github/workflows/build.desktop.yml similarity index 99% rename from .github/workflows/build.yml rename to .github/workflows/build.desktop.yml index 10b62a3..db5f2e4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.desktop.yml @@ -1,4 +1,4 @@ -name: 'Build Remède native applications' +name: 'Build Remède desktop applications' on: push: