forked from obytes/react-native-template-obytes
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Guillermo Machado
committed
Aug 5, 2024
1 parent
303435f
commit 63d3feb
Showing
6 changed files
with
78 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# 🔗 Links: | ||
# Source file: https://github.com/obytes/react-native-template-obytes/blob/master/.github/workflows/eas-build-qa.yml | ||
# Starter releasing process: https://starter.obytes.com/ci-cd/app-releasing-process/ | ||
|
||
# ✍️ Description: | ||
# This workflow is used to trigger a build on EAS for the Staging environment. | ||
# It will run on every GitHub release published on the repo or can be triggered manually from the actions tab. | ||
# This workflow will use ./actions/eas-build action to trigger the build on EAS with staging env. | ||
|
||
# 🚨 GITHUB SECRETS REQUIRED: | ||
# - EXPO_TOKEN: Expo token to authenticate with EAS | ||
# - You can get it from https://expo.dev/settings/access-tokens | ||
|
||
name: EAS Staging Build (Android & IOS) (EAS) | ||
|
||
on: | ||
workflow_dispatch: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
Build: | ||
name: EAS Staging Build (Android & IOS) (EAS) | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check for EXPO_TOKEN | ||
run: | | ||
if [ -z "${{ secrets.EXPO_TOKEN }}" ]; then | ||
echo "You must provide an EXPO_TOKEN secret linked to this project's Expo account in this repo's secrets. Learn more: https://docs.expo.dev/eas-update/github-actions" | ||
exit 1 | ||
fi | ||
- name: 📦 Checkout project repo | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: 📦 Setup Node + PNPM + install deps | ||
uses: ./.github/actions/setup-node-pnpm-install | ||
|
||
- name: ⏱️ EAS Build | ||
uses: ./.github/actions/eas-build | ||
with: | ||
APP_ENV: staging | ||
EXPO_TOKEN: ${{ secrets.EXPO_TOKEN }} | ||
VERSION: ${{ github.event.release.tag_name }} | ||
IOS: false # TODO: set as true when IOS account is ready | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters