-
Notifications
You must be signed in to change notification settings - Fork 4
70 lines (57 loc) · 2.1 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# name: expo publish
# on :
# push :
# branches : [ develop ]
# pull_request:
# types: [opened, synchronize]
# concurrency:
# group: publish-${{ github.ref }}
# cancel-in-progress: true
# jobs:
# build-deploy:
# runs-on: ubuntu-latest
# defaults:
# run:
# shell: bash
# working-directory: ./app
# steps:
# - name: 🏗 Setup repo
# uses: actions/checkout@v3
# - name: 🏗 Setup node
# uses: actions/setup-node@v3
# with:
# node-version: 14.x
# cache: yarn
# cache-dependency-path: app/yarn.lock
# - name: 🏗 Config files
# run: |
# echo "$GOOGLE_SERVICES" > google-services.json
# echo "$FIREBASE_CONFIG_DEV" > ./src/config/authmiaajuda-firebase-dev.json
# echo "$FIREBASE_CONFIG" > ./src/config/authmiaajuda-firebase.json
# echo "$ENV_VARIABLE" > .env
# env:
# GOOGLE_SERVICES: ${{ secrets.GOOGLE_SERVICES }}
# FIREBASE_CONFIG_DEV: ${{ secrets.FIREBASE_CONFIG_DEV }}
# FIREBASE_CONFIG: ${{ secrets.FIREBASE_CONFIG }}
# ENV_VARIABLE: ${{ secrets.ENV_VARIABLE }}
# - name: 🏗 Setup Expo
# uses: expo/expo-github-action@v7
# with:
# expo-version: latest
# token: ${{ secrets.EXPO_TOKEN }}
# - name: 📦 Install dependencies
# run: yarn install --pure-lockfile --non-interactive
# - name: 📦 Run lint
# run: yarn lint
# - name: 📦 Publish staging
# if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/develop' }}
# run: expo publish --release-channel=staging --non-interactive
# - name: 📦 Publish preview
# if: ${{ github.event_name == 'pull_request' }}
# run: expo publish --release-channel=pr-${{ github.event.number }}
# - name: 📦 Comment preview
# if: ${{ github.event_name == 'pull_request' }}
# uses: expo/expo-github-action/preview-comment@v7
# with:
# project: app
# channel: pr-${{ github.event.number }}