v0.1.2 #60
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
name: CI | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: π Setup repo | |
uses: actions/checkout@v3 | |
- name: π Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18.x | |
cache: npm | |
- name: π Setup Expo | |
uses: expo/expo-github-action@v7 | |
with: | |
expo-version: latest | |
eas-version: latest | |
token: ${{ secrets.EXPO_TOKEN }} | |
- name: π¦ Install dependencies | |
run: npm install | |
- name: π Retrieve Secrets | |
env: | |
ANDROID_JSON_BASE64: ${{ secrets.ANDROID_JSON_BASE64 }} | |
APPLE_P8_BASE64: ${{ secrets.APPLE_P8_BASE64 }} | |
run: | | |
echo $ANDROID_JSON_BASE64 | base64 --decode > ./release/android.json | |
echo $APPLE_P8_BASE64 | base64 --decode > ./release/apple.p8 | |
- name: π Publish app | |
run: eas update --channel production --message "new main release" | |
- name: π Build on EAS | |
if: startsWith(github.event.head_commit.message,'v0.') | |
run: eas build --platform android --profile production --non-interactive --no-wait --auto-submit |