make a new way

This commit is contained in:
Alexander Kacheryants 2024-06-20 06:24:58 +03:00
parent 944c408752
commit 120326ec8f

View File

@ -26,20 +26,36 @@ steps:
- name: Publish app - name: Publish app
image: ocram85/plugin-gitea-package:latest image: ocram85/plugin-gitea-package:latest
pull: true pull: true
secrets: [ gitea_user, gitea_passwd] secrets: [ gitea_user, gitea_passwd ]
settings: settings:
user: user:
from_secret: gitea_user from_secret: gitea_user
password: password:
from_secret: gitea_passwd from_secret: gitea_passwd
debug: "true" debug: "true"
owner: "plugins" owner: "iHackFX"
package_name: "dummy_package" package_name: "library"
package_version: "0.1.0" package_version: "0.1.0"
file_source: "./android/app/build/apk/app-debug-unaligned.apk" file_source: "./android/app/build/outputs/apk/debug/app-debug.apk"
file_name: "app-debug-unaligned.apk" file_name: "app-debug.apk"
update: "true" update: "true"
when: when:
event: release event: release
branch: ${CI_REPO_DEFAULT_BRANCH} branch: ${CI_REPO_DEFAULT_BRANCH}
- name: Comment
image: mcs94/gitea-comment
settings:
gitea_address: http://gitea.192.168.0.100.nip.io:3000/
gitea_token:
from_secret: woodpecker_bot_token
comment: >
✅ Build ${CI_BUILD_EVENT} of `${CI_REPO_NAME}` has status `${CI_BUILD_STATUS}`.
📝 Commit by ${CI_COMMIT_AUTHOR} on `${CI_COMMIT_BRANCH}`:
`${CI_COMMIT_MESSAGE}`
🌐 ${CI_BUILD_LINK}
when:
event: [pull_request]