library/.woodpecker/.make-app.yaml
2024-06-20 05:54:30 +03:00

52 lines
1.1 KiB
YAML

when:
- event: [push, pull_request, manual, deployment, tag, release, pull_request]
steps:
- name: Install dependencies
image: node:latest
commands:
- npm i
- name: Build web app
image: node:latest
commands:
- npm run build
- name: Ionic sync
image: node:latest
commands:
- npx cap sync
- name: Build Android app
image: mingc/android-build-box
commands:
- cd android
- bash -c "chmod +x gradlew; ./gradlew assemble"
- name: Check if app is here
image: node:latest
commands:
- ls ./
- ls ./android/app/build/apk/
- name: Publish app
image: ocram85/plugin-gitea-package:latest
pull: true
secrets: [ gitea_user, gitea_passwd]
settings:
user:
from_secret: gitea_user
password:
from_secret: gitea_passwd
debug: "true"
owner: "plugins"
package_name: "dummy_package"
package_version: "0.1.0"
file_source: "./android/app/build/apk/app-debug-unaligned.apk"
file_name: "app-debug-unaligned.apk"
update: "true"
when:
event: release
branch: ${CI_REPO_DEFAULT_BRANCH}