-
Notifications
You must be signed in to change notification settings - Fork 1
/
.woodpecker.yml
31 lines (28 loc) · 939 Bytes
/
.woodpecker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
steps:
clone-builds:
image: woodpeckerci/plugin-git
secrets: [ codeberg_token ]
commands:
git clone -b builds https://[email protected]/$CI_REPO.git $CI_WORKSPACE/../builds
clean:
image: alpine:3
commands:
- rm $CI_WORKSPACE/../builds/*.cs3 || true
build:
image: androidsdk/android-31
commands:
- export GITHUB_REPOSITORY=https://codeberg.org/$CI_REPO; echo $GITHUB_REPOSITORY
- bash gradlew make makePluginsJson
- cp **/build/*.cs3 $CI_WORKSPACE/../builds
- cp build/plugins.json $CI_WORKSPACE/../builds
push:
image: woodpeckerci/plugin-git
commands:
- cd $CI_WORKSPACE/../builds
- git config --local user.email $CI_COMMIT_AUTHOR_EMAIL
- git config --local user.name $CI_COMMIT_AUTHOR
- git add .
- git commit --amend -m "Build $CI_COMMIT_SHA" || exit 0
- git push --force
when:
- branch: [master]