diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 98c9a28..a1cfe1b 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -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: @@ -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 @@ -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