-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Continuous deployment scripts (#207)
- Loading branch information
Showing
8 changed files
with
108 additions
and
45 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
EXPO_APPLICATION_SERVICES_PROJECT_ID="" | ||
|
||
STA_API_BASE_URL="" | ||
STA_API_VERSION="v1" | ||
STA_API_KEY="" | ||
|
||
FEATURES_ENABLED=events,profileScreen | ||
FEATURES_ENABLED=events,profileScreen |
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,43 @@ | ||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
name: 🚀 build Expo Go preview | ||
|
||
jobs: | ||
preview: | ||
runs-on: ubuntu-latest | ||
env: | ||
STA_API_BASE_URL: https://the-sta.com | ||
STA_API_VERSION: v1 | ||
FEATURES_ENABLED: events,profileScreen | ||
steps: | ||
- name: 🏗 Setup repo | ||
uses: actions/checkout@v4 | ||
- name: 🏗 Setup Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18.14 | ||
cache: 'npm' | ||
- name: 🏗 Setup EAS | ||
uses: expo/expo-github-action@v7 | ||
with: | ||
eas-version: latest | ||
token: ${{ secrets.EXPO_ACCESS_TOKEN }} | ||
- name: 📦 Install dependencies | ||
run: npm ci | ||
- name: 🚀 Create preview | ||
uses: expo/expo-github-action/preview@v8 | ||
id: preview | ||
with: | ||
command: eas update --auto | ||
comment: false | ||
# TODO | ||
# - name: 💬 Comment in Slack | ||
# uses: slackapi/[email protected] | ||
# env: | ||
# SLACK_BOT_TOKEN: ${{ secrets.SLACK_TOKEN }} | ||
# with: | ||
# channel-id: deployments | ||
# slack-message: 'New deployment is ready!\n- Preview: ${{ steps.preview.outputs.qr }}' |
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,32 @@ | ||
on: | ||
push: | ||
tags: | ||
- v** | ||
|
||
name: 🚀 build and upload to app stores | ||
|
||
jobs: | ||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
env: | ||
STA_API_BASE_URL: https://the-sta.com | ||
STA_API_VERSION: v1 | ||
FEATURES_ENABLED: "" | ||
steps: | ||
- name: 🏗 Setup repo | ||
uses: actions/checkout@v4 | ||
- name: 🏗 Setup Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18.14 | ||
cache: 'npm' | ||
- name: 📦 Install dependencies | ||
run: npm ci | ||
- name: 🏗 Setup EAS | ||
uses: expo/expo-github-action@v7 | ||
with: | ||
eas-version: latest | ||
token: ${{ secrets.EXPO_ACCESS_TOKEN }} | ||
- name: 🚀 Build app | ||
run: eas build --non-interactive --platform all --auto-submit --no-wait |
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
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