Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/build-desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,13 @@ jobs:

- name: Build shared-utils
run: npm run shared-utils-build


- name: Save public env variables into .env file
run: |
echo NEXT_PUBLIC_BACKEND_URL=$NEXT_PUBLIC_BACKEND_URL >> ./web/.env
echo NEXT_PUBLIC_CDN_URL=$NEXT_PUBLIC_CDN_URL >> ./web/.env
echo NEXT_PUBLIC_STORAGE_CONTAINER=$NEXT_PUBLIC_STORAGE_CONTAINER >> ./web/.env

- name: Install web dependencies
run: npm install --workspace=web

Expand Down
26 changes: 9 additions & 17 deletions .github/workflows/build-mobile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,22 +31,11 @@ jobs:
java-version: "21"
distribution: "temurin"

- name: Install Android SDK Command Line Tools
run: |
export ANDROID_SDK_ROOT=$HOME/Android/Sdk
mkdir -p $ANDROID_SDK_ROOT/cmdline-tools
cd $ANDROID_SDK_ROOT/cmdline-tools
wget https://dl.google.com/android/repository/commandlinetools-linux-13114758_latest.zip -O commandlinetools.zip
unzip commandlinetools.zip
rm commandlinetools.zip
mv cmdline-tools latest
echo "$ANDROID_SDK_ROOT/cmdline-tools/latest/bin" >> $GITHUB_PATH
echo "$ANDROID_SDK_ROOT/platform-tools" >> $GITHUB_PATH
- name: Setup Android SDK
uses: android-actions/setup-android@v3

- name: Install Android SDK build tools
run: |
export ANDROID_SDK_ROOT=$HOME/Android/Sdk
yes | sdkmanager --licenses
sdkmanager "build-tools;${{env.ANDROID_SDK_VERSION}}"
echo "$ANDROID_SDK_ROOT/build-tools/${{env.ANDROID_SDK_VERSION}}" >> $GITHUB_PATH

Expand All @@ -69,6 +58,12 @@ jobs:
- name: Install web dependencies
run: npm install --workspace=web

- name: Save public env variables into .env file
run: |
echo NEXT_PUBLIC_BACKEND_URL=$NEXT_PUBLIC_BACKEND_URL >> ./web/.env
echo NEXT_PUBLIC_CDN_URL=$NEXT_PUBLIC_CDN_URL >> ./web/.env
echo NEXT_PUBLIC_STORAGE_CONTAINER=$NEXT_PUBLIC_STORAGE_CONTAINER >> ./web/.env

- name: Build Web App
run: npm run web-build

Expand All @@ -83,8 +78,5 @@ jobs:
working-directory: mobile

- name: Build Capacitor App
run: |
export ANDROID_SDK_ROOT=$HOME/Android/Sdk
unset ANDROID_HOME
npx cap build android --keystorepath ~/.keystore/pulse-editor.keystore --keystorepass ${{ secrets.ANDROID_KEYSTORE_PASS }} --androidreleasetype APK
run: npx cap build android --keystorepath ~/.keystore/pulse-editor.keystore --keystorepass ${{ secrets.ANDROID_KEYSTORE_PASS }} --androidreleasetype APK
working-directory: mobile
6 changes: 6 additions & 0 deletions .github/workflows/build-web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ jobs:
- name: Install web dependencies
run: npm install --workspace=web

- name: Save public env variables into .env file
run: |
echo NEXT_PUBLIC_BACKEND_URL=$NEXT_PUBLIC_BACKEND_URL >> ./web/.env
echo NEXT_PUBLIC_CDN_URL=$NEXT_PUBLIC_CDN_URL >> ./web/.env
echo NEXT_PUBLIC_STORAGE_CONTAINER=$NEXT_PUBLIC_STORAGE_CONTAINER >> ./web/.env

- name: Build web app
run: |
npm run web-build
6 changes: 6 additions & 0 deletions .github/workflows/release-desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ jobs:
run: npm run rebuild-native
working-directory: desktop

- name: Save public env variables into .env file
run: |
echo NEXT_PUBLIC_BACKEND_URL=$NEXT_PUBLIC_BACKEND_URL >> ./web/.env
echo NEXT_PUBLIC_CDN_URL=$NEXT_PUBLIC_CDN_URL >> ./web/.env
echo NEXT_PUBLIC_STORAGE_CONTAINER=$NEXT_PUBLIC_STORAGE_CONTAINER >> ./web/.env

- name: Build Electron App
run: |
npm run desktop-build
Expand Down
26 changes: 9 additions & 17 deletions .github/workflows/release-mobile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,22 +28,11 @@ jobs:
java-version: "21"
distribution: "temurin"

- name: Install Android SDK Command Line Tools
run: |
export ANDROID_SDK_ROOT=$HOME/Android/Sdk
mkdir -p $ANDROID_SDK_ROOT/cmdline-tools
cd $ANDROID_SDK_ROOT/cmdline-tools
wget https://dl.google.com/android/repository/commandlinetools-linux-13114758_latest.zip -O commandlinetools.zip
unzip commandlinetools.zip
rm commandlinetools.zip
mv cmdline-tools latest
echo "$ANDROID_SDK_ROOT/cmdline-tools/latest/bin" >> $GITHUB_PATH
echo "$ANDROID_SDK_ROOT/platform-tools" >> $GITHUB_PATH
- name: Setup Android SDK
uses: android-actions/setup-android@v3

- name: Install Android SDK build tools
run: |
export ANDROID_SDK_ROOT=$HOME/Android/Sdk
yes | sdkmanager --licenses
sdkmanager "build-tools;${{env.ANDROID_SDK_VERSION}}"
echo "$ANDROID_SDK_ROOT/build-tools/${{env.ANDROID_SDK_VERSION}}" >> $GITHUB_PATH

Expand All @@ -66,6 +55,12 @@ jobs:
- name: Install web dependencies
run: npm install --workspace=web

- name: Save public env variables into .env file
run: |
echo NEXT_PUBLIC_BACKEND_URL=$NEXT_PUBLIC_BACKEND_URL >> ./web/.env
echo NEXT_PUBLIC_CDN_URL=$NEXT_PUBLIC_CDN_URL >> ./web/.env
echo NEXT_PUBLIC_STORAGE_CONTAINER=$NEXT_PUBLIC_STORAGE_CONTAINER >> ./web/.env

- name: Build Web App
run: npm run web-build

Expand All @@ -80,10 +75,7 @@ jobs:
working-directory: mobile

- name: Build Capacitor App
run: |
export ANDROID_SDK_ROOT=$HOME/Android/Sdk
unset ANDROID_HOME
npx cap build android --keystorepath ~/.keystore/pulse-editor.keystore --keystorepass ${{ secrets.ANDROID_KEYSTORE_PASS }} --androidreleasetype APK
run: npx cap build android --keystorepath ~/.keystore/pulse-editor.keystore --keystorepass ${{ secrets.ANDROID_KEYSTORE_PASS }} --androidreleasetype APK
working-directory: mobile

- name: Move APK
Expand Down