Skip to content
Source
Sign inSign up
pingdotgg/t3code

ci(mobile): maintainers can deploy EAS previews for reviewed fork commits #27292

Mergedjuliusmarmingemerged 2 commits intomain fromrefs/pull/27292/headmerged by juliusmarminge View on GitHub

Showing 2 changed files with 153 additions and 6 deletions.

x
0 of 2 viewed, 2 left
145 additions and 0 deletions.github/workflows/mobile-eas-preview-fork.ymlAdded
View file
@@ -0,0 +1,145 @@
+name: Mobile EAS Preview (Fork)
+​
+# EAS previews for fork PRs. This runs the PR's code with an Expo token: the
+# app config and plugins run on this runner, and native builds run on EAS
+# with preview signing credentials. The label is the maintainer's sign-off
+# that they reviewed that code, so it covers exactly the commit it was applied
+# to: this pins that commit and consumes the label before running anything. A
+# later push deploys nothing until the label is applied again.
+#
+# Same-repo PRs deploy on every push while labeled, via mobile-eas-preview.yml.
+​
+on:
+ pull_request_target:
+ types: [labeled]
+​
+permissions:
+ contents: read
+​
+jobs:
+ preview:
+ name: EAS Preview
+ if: >-
+ github.event.pull_request.head.repo.full_name != github.repository &&
+ github.event.label.name == '🚀 Mobile Continuous Deployment'
+ runs-on: blacksmith-8vcpu-ubuntu-2404
+ concurrency:
+ group: mobile-eas-preview-fork-${{ github.event.pull_request.number }}
+ cancel-in-progress: true
+ permissions:
+ contents: read