From a533b449af21144a2341842f8f24658a43a3d8be Mon Sep 17 00:00:00 2001
From: ricky_0_k <ridickle7@gmail.com>
Date: Sun, 23 Jul 2023 12:35:47 +0900
Subject: [PATCH] Create android-branch-deploy.yml (ref #608)

---
 .github/workflows/android-branch-deploy.yml | 44 +++++++++++++++++++++
 1 file changed, 44 insertions(+)
 create mode 100644 .github/workflows/android-branch-deploy.yml

diff --git a/.github/workflows/android-branch-deploy.yml b/.github/workflows/android-branch-deploy.yml
new file mode 100644
index 000000000..5788126ea
--- /dev/null
+++ b/.github/workflows/android-branch-deploy.yml
@@ -0,0 +1,44 @@
+name: "branch deploy demo"
+
+# The workflow to execute on is comments that are newly created
+on:
+  issue_comment:
+    types: [created]
+
+# Permissions needed for reacting and adding comments for IssueOps commands
+permissions:
+  pull-requests: write
+  deployments: write
+  contents: write
+  checks: read
+
+jobs:
+  demo:
+    if: ${{ github.event.issue.pull_request }} # only run on pull request comments
+    runs-on: ubuntu-latest
+    steps:
+      # Execute IssueOps branch deployment logic, hooray!
+      # This will be used to "gate" all future steps below and conditionally trigger steps/deployments
+      - uses: github/branch-deploy@vX.X.X
+        id: branch-deploy
+        with:
+          trigger: ".deploy"
+
+      # Run your deployment logic for your project here - examples seen below
+
+      # Checkout your projects repository based on the ref provided by the branch-deploy step
+      - uses: actions/checkout@v3
+        with:
+          ref: ${{ steps.branch-deploy.outputs.ref }}
+
+      # Do some fake "noop" deployment logic here
+      # conditionally run a noop deployment
+      - name: fake noop deploy
+        if: ${{ steps.branch-deploy.outputs.continue == 'true' && steps.branch-deploy.outputs.noop == 'true' }}
+        run: echo "I am doing a fake noop deploy"
+
+      # Do some fake "regular" deployment logic here
+      # conditionally run a regular deployment
+      - name: fake regular deploy
+        if: ${{ steps.branch-deploy.outputs.continue == 'true' && steps.branch-deploy.outputs.noop != 'true' }}
+        run: echo "I am doing a fake regular deploy"