Skip to content

Commit

Permalink
Update build.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
floki1250 authored Oct 4, 2024
1 parent 16eafe5 commit 1ce7909
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build Nuxt and Cordova
on:
push:
branches:
- beta # Adjust to your main branch
- beta # Adjust to your main branch
pull_request:

jobs:
Expand All @@ -19,17 +19,17 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: "18" # Adjust to your Node.js version
node-version: '18' # Adjust to your Node.js version

# Step 3: Install dependencies for Nuxt 3 project
- name: Install dependencies
run: npm install
working-directory: . # Root directory
working-directory: . # Root directory

# Step 4: Build the Nuxt 3 app
- name: Build Nuxt 3 app
run: npm run build
working-directory: . # Root directory
working-directory: . # Root directory

# Step 5: Copy Nuxt build output to Cordova 'www' folder
- name: Copy Nuxt build to Cordova www
Expand All @@ -42,16 +42,14 @@ jobs:
- name: Set up Java
uses: actions/setup-java@v3
with:
java-version: "11" # You may need to adjust the version for Cordova compatibility
java-version: '11' # You may need to adjust the version for Cordova compatibility

# Step 7: Set up Android SDK (required for Cordova)
# Step 7: Set up Android SDK (using android-actions/setup-android)
- name: Install Android SDK
uses: malinskiy/action-android@v2
uses: android-actions/setup-android@v2
with:
api-level: 30 # Adjust to your preferred Android API level
target: default
arch: x86_64
ndk: "21.4.7075529" # Adjust NDK version if needed
api-level: 30 # Adjust to your preferred Android API level
ndk: '21.4.7075529' # Adjust NDK version if needed

# Step 8: Install Cordova
- name: Install Cordova
Expand Down

0 comments on commit 1ce7909

Please sign in to comment.