Current working directory is not a Cordova-based project
opened this issue · comments
Deleted user commented
While trying to setup this Action I got the following error:
... large docker command ...
5: Current working directory is not a Cordova-based project.
This is the yml file
name: Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Build APK
uses: oxr463/setup-cordova@0.0.2
with:
exec: cordova platform add android && \
cordova build --no-telemetry && \
cp "$(find . -name '*.apk')" .
and my file structure looks like this
.
├── config.xml
├── hooks
│ └── cordova.js
├── package.json
├── package-lock.json
└── src
├── App.js
├── index.css
├── index.html
└── index.js
Which was generated by the Cordova CLI utility.
Deleted user commented
Oh, and I do have a www/
folder inside, because that seems to be the problem in the first place.
Lucas Ramage commented
It doesn't look like you're checking out the code:
steps:
- uses: actions/checkout@v1
This needs to be done first.
Deleted user commented
OH, right! I forgot about that.
Deleted user commented
Yeah, just tested this out and it turns out that was it, so yeah, thanks.
Lucas Ramage commented
No problem. Please let me know if anything else comes up.