Skip to content

release: 1.4.5

release: 1.4.5 #13

Workflow file for this run

name: Release APKs on Tag
on:
push:
tags:
- '*'
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: 🏗 Setup repo
uses: actions/checkout@v3
with:
lfs: true
submodules: "recursive"
- name: Set outputs
id: vars
run: |
echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: 🏗 Setup Node
uses: actions/setup-node@v3
with:
node-version: 20.x
cache: yarn
- name: 🏗 Setup EAS
uses: expo/expo-github-action@v8
with:
eas-version: latest
token: ${{ secrets.EXPO_TOKEN }}
- name: 📦 Install dependencies
run: yarn install
- name: create build directory
run: mkdir build
- name: 🚀 Build app (android)
run: eas build --local --non-interactive --platform android --profile production --output build/v${{ env.RELEASE_VERSION }}.apk
- name: Build app bundle (android)
run: NODE_OPTIONS=--max_old_space_size=4096 eas build --local --non-interactive --platform android --profile aab --output build/v${{ env.RELEASE_VERSION }}.aab
- uses: actions/upload-artifact@v4
with:
name: android apk
path: build/v${{ env.RELEASE_VERSION }}.apk
- uses: actions/upload-artifact@v4
with:
name: android aab
path: build/v${{ env.RELEASE_VERSION }}.aab
- name: Create GitHub Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.RELEASE_VERSION }}
release_name: Release ${{ env.RELEASE_VERSION }}
draft: false
prerelease: false
- name: Upload APK
id: upload-apk
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: build/v${{ env.RELEASE_VERSION }}.apk
asset_name: v${{ env.RELEASE_VERSION }}.apk
asset_content_type: application/vnd.android.package-archive
- name: Upload AAB
id: upload-aab
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: build/v${{ env.RELEASE_VERSION }}.aab
asset_name: v${{ env.RELEASE_VERSION }}.aab
asset_content_type: application/x-authorware-bin