Some checks failed
Building APK / build-apk (push) Failing after 1m33s
🔄 refactor(ClipView.tsx, NotifView.tsx): reorder tabs to show 'Remote' before 'Local' 🌐 fix(ClipViewRemote.tsx, NotifViewRemote.tsx): change API calls from http to https 🔤 fix(ClipViewLocal.tsx, NotifViewLocal.tsx): translate button text to English 🔇 fix(ClipViewRemote.tsx, NotifViewRemote.tsx): remove unnecessary toast messages 🔧 chore(NotifViewLocal.tsx): add platform check to disable feature on non-Android platforms 🔤 fix(NotifViewLocal.tsx): translate button text to English 🔧 chore(reducers.tsx): remove unused action parameters in clear functions
60 lines
1.5 KiB
YAML
60 lines
1.5 KiB
YAML
name: Building APK
|
|
run-name: Build APK
|
|
on: [push]
|
|
jobs:
|
|
build-apk:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out repository code
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Setup Java
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
distribution: 'adopt'
|
|
java-version: '17'
|
|
|
|
- name: Setup NodeJS
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 18.x
|
|
|
|
- name: Setup bun
|
|
uses: oven-sh/setup-bun@v1
|
|
|
|
- name: Install dependencies
|
|
run: bun install
|
|
|
|
- name: Setup EAS
|
|
uses: expo/expo-github-action@v8
|
|
with:
|
|
eas-version: latest
|
|
token: ${{ secrets.EXPO_TOKEN }}
|
|
packager: bun
|
|
|
|
- name: Build Website
|
|
run: bunx expo export --platform web
|
|
|
|
- name: Upload disk ZIP
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: dist
|
|
path: dist
|
|
|
|
- name: Create SSH key
|
|
run: |
|
|
install -m 600 -D /dev/null ~/.ssh/id_rsa
|
|
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
|
|
echo "${{ secrets.SSH_KNOWN_HOSTS }}" > ~/.ssh/known_hosts
|
|
|
|
- name: rsync deployments
|
|
uses: burnett01/rsync-deployments@5.2.1
|
|
with:
|
|
switches: -rav --delete
|
|
path: dist/
|
|
remote_path: /var/www/clipsync-webapp
|
|
remote_host: simailadjalim.fr
|
|
remote_user: deployer
|
|
remote_key: ${{ secrets.SSH_PRIVATE_KEY }}
|
|
|