Update build-apk.yml #11
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: Build APK | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Setup Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '16' | |
- name: Install dependencies | |
run: npm install | |
- name: Install Expo CLI | |
run: npm install -g expo-cli | |
- name: Install EAS CLI | |
run: npm install -g eas-cli | |
- name: Login to Expo | |
env: | |
EXPO_EMAIL: ${{ secrets.EXPO_EMAIL }} | |
EXPO_PASSWORD: ${{ secrets.EXPO_PASSWORD }} | |
run: | | |
echo $EXPO_PASSWORD | expo login -u $EXPO_EMAIL -p $EXPO_PASSWORD --non-interactive | |
- name: Build APK | |
run: eas build -p android --profile preview --non-interactive | |
- name: Upload APK to GitHub Artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
name: apk | |
path: | | |
build/*.apk | |
**/*.apk |