sharewithtitle/.gitea/workflows/apk.yml

30 lines
1.1 KiB
YAML
Raw Normal View History

2023-07-30 19:04:42 +00:00
name: apk
2023-07-31 20:59:11 +00:00
on: [ push ]
2023-07-30 19:04:42 +00:00
jobs:
build:
runs-on: ubuntu-latest
container: mingc/android-build-box
steps:
2023-09-11 06:54:32 +00:00
- uses: actions/setup-go@v4
2023-07-30 19:04:42 +00:00
with:
go-version: '>=1.20.1'
2023-09-28 22:29:15 +00:00
- uses: actions/checkout@v4
2023-07-30 19:24:24 +00:00
- run: curl -sSL -u "$USERNAME:$PASSWORD" -o ShareWithTitle/$STORE_FILE https://cloud.crystalyx.net/remote.php/dav/files/$USERNAME/Bordel/$STORE_FILE
2023-07-30 21:44:46 +00:00
- run: sh gradlew lint build bundle assemble --no-daemon
2023-07-30 19:04:42 +00:00
- uses: https://gitea.com/actions/release-action@main
if: startsWith(gitea.ref, 'refs/tags')
with:
files: |
2023-07-30 19:46:51 +00:00
ShareWithTitle/build/outputs/apk/debug/ShareWithTitle-debug.apk
ShareWithTitle/build/outputs/apk/release/ShareWithTitle-release.apk
ShareWithTitle/build/outputs/bundle/release/ShareWithTitle-release.aab
2023-07-30 19:04:42 +00:00
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 }}