1.2.0 #13
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 | |
on: | |
push: | |
tags: | |
- "v*.*.*" | |
branches: | |
- "main" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Node.js 20.10.0 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.10.0 | |
cache: "npm" | |
- name: Install dependencies | |
run: npm ci | |
- name: Lint | |
run: npm run lint | |
- name: Prebuild | |
run: npm exec expo -- prebuild --platform android | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: "17" | |
distribution: "temurin" | |
cache: "gradle" | |
- name: Set up Expo EAS | |
uses: expo/expo-github-action@v8 | |
with: | |
eas-version: latest | |
token: ${{ secrets.EXPO_TOKEN }} | |
- name: Build | |
env: | |
EXPO_PUBLIC_PARSE_APPLICATION_ID: ${{ secrets.EXPO_PUBLIC_PARSE_APPLICATION_ID }} | |
EXPO_PUBLIC_PARSE_CLIENT_KEY: ${{ secrets.EXPO_PUBLIC_PARSE_CLIENT_KEY }} | |
EXPO_PUBLIC_PARSE_SERVER_URL: ${{ secrets.EXPO_PUBLIC_PARSE_SERVER_URL }} | |
run: npm run build:preview | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: "./*.apk" |