Switch to Gitea Actions
This commit is contained in:
parent
4b6c6b87a0
commit
60d4de410a
35
.drone.yml
35
.drone.yml
@ -1,35 +0,0 @@
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: default
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
image: mingc/android-build-box
|
||||
commands:
|
||||
- curl -sSL -u "$USERNAME:$PASSWORD" -o app/$STORE_FILE https://cloud.crystalyx.net/remote.php/dav/files/$USERNAME/Bordel/$STORE_FILE
|
||||
- sh gradlew build bundleRelease assembleRelease --no-daemon
|
||||
environment:
|
||||
USERNAME:
|
||||
from_secret: nextcloud_user
|
||||
PASSWORD:
|
||||
from_secret: nextcloud_password
|
||||
STORE_FILE:
|
||||
from_secret: android_keyfile
|
||||
STORE_PASSWORD:
|
||||
from_secret: android_keypass
|
||||
KEY_ALIAS:
|
||||
from_secret: android_keyalias
|
||||
KEY_PASSWORD:
|
||||
from_secret: android_keypass
|
||||
- name: release
|
||||
image: plugins/gitea-release
|
||||
settings:
|
||||
api_key:
|
||||
from_secret: gitea_token
|
||||
base_url: https://git.crystalyx.net
|
||||
files:
|
||||
- app/build/outputs/apk/debug/app-debug.apk
|
||||
- app/build/outputs/apk/release/app-release.apk
|
||||
- app/build/outputs/bundle/release/app-release.aab
|
||||
when:
|
||||
event: tag
|
27
.gitea/workflows/apk.yml
Normal file
27
.gitea/workflows/apk.yml
Normal file
@ -0,0 +1,27 @@
|
||||
name: apk
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
container: mingc/android-build-box
|
||||
steps:
|
||||
- uses: actions/setup-go@v3
|
||||
- uses: actions/checkout@v3
|
||||
- run: curl -sSL -u "$USERNAME:$PASSWORD" -o app/$STORE_FILE https://cloud.crystalyx.net/remote.php/dav/files/$USERNAME/Bordel/$STORE_FILE
|
||||
- run: sh gradlew build bundleRelease assembleRelease --no-daemon
|
||||
- uses: https://gitea.com/actions/release-action@main
|
||||
if: startsWith(gitea.ref, 'refs/tags')
|
||||
with:
|
||||
files:
|
||||
- app/build/outputs/apk/debug/app-debug.apk
|
||||
- app/build/outputs/apk/release/app-release.apk
|
||||
- app/build/outputs/bundle/release/app-release.aab
|
||||
api_key: ${{ secrets.RELEASE_TOKEN }}
|
||||
env:
|
||||
USERNAME: ${{ secrets.USERNAME }}
|
||||
PASSWORD: ${{ secrets.PASSWORD }}
|
||||
STORE_FILE: ${{ secrets.STORE_FILE }}
|
||||
STORE_PASSWORD: ${{ secrets.STORE_PASSWORD }}
|
||||
KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
|
||||
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}
|
Loading…
Reference in New Issue
Block a user