2023-10-22 10:57:35 +03:00
|
|
|
name: Build Pre-Release
|
2022-06-16 10:24:43 +03:00
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
BuildPreRelease:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout Repository
|
|
|
|
uses: actions/checkout@v3
|
2022-06-18 08:21:23 +03:00
|
|
|
|
|
|
|
- name: Checkout submodules
|
2023-10-26 16:20:21 +03:00
|
|
|
run: git submodule update --init --recursive --remote --force
|
2022-06-16 10:24:43 +03:00
|
|
|
|
|
|
|
- name: Setup Java
|
|
|
|
uses: actions/setup-java@v3
|
|
|
|
with:
|
|
|
|
distribution: 'zulu'
|
|
|
|
java-version: 17
|
|
|
|
|
|
|
|
- name: Setup Go
|
|
|
|
uses: actions/setup-go@v3
|
|
|
|
with:
|
2023-02-05 05:29:26 +03:00
|
|
|
go-version: "1.20"
|
2022-06-16 10:24:43 +03:00
|
|
|
|
|
|
|
- uses: actions/cache@v3
|
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
~/.cache/go-build
|
|
|
|
~/go/pkg/mod
|
|
|
|
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
|
|
|
restore-keys: |
|
|
|
|
${{ runner.os }}-go-
|
|
|
|
|
2022-06-18 03:16:17 +03:00
|
|
|
- name: Signing properties
|
|
|
|
env:
|
|
|
|
SIGNING_STORE_PASSWORD: ${{ secrets.SIGNING_STORE_PASSWORD }}
|
|
|
|
SIGNING_KEY_ALIAS: ${{ secrets.SIGNING_KEY_ALIAS }}
|
|
|
|
SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }}
|
|
|
|
run: |
|
|
|
|
touch signing.properties
|
|
|
|
echo keystore.password="$SIGNING_STORE_PASSWORD" > signing.properties
|
|
|
|
echo key.alias="$SIGNING_KEY_ALIAS" >> signing.properties
|
|
|
|
echo key.password="$SIGNING_KEY_PASSWORD" >> signing.properties
|
|
|
|
|
|
|
|
echo "cat signing.properties"
|
|
|
|
cat signing.properties
|
|
|
|
|
|
|
|
- name: Pre-release Build
|
2022-06-16 10:24:43 +03:00
|
|
|
if: success()
|
|
|
|
uses: gradle/gradle-build-action@v2
|
|
|
|
with:
|
|
|
|
arguments: --no-daemon app:assembleMeta-AlphaRelease
|
|
|
|
|
|
|
|
- name: Delete current release assets
|
|
|
|
uses: andreaswilli/delete-release-assets-action@v2.0.0
|
|
|
|
with:
|
|
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
2022-06-18 07:49:23 +03:00
|
|
|
tag: Prerelease-alpha
|
2022-06-16 10:24:43 +03:00
|
|
|
deleteOnlyFromDrafts: false
|
2022-06-18 03:16:17 +03:00
|
|
|
|
2022-06-16 10:24:43 +03:00
|
|
|
- name: Tag Repo
|
|
|
|
uses: richardsimko/update-tag@v1
|
|
|
|
with:
|
2022-06-18 07:49:23 +03:00
|
|
|
tag_name: Prerelease-alpha
|
2022-06-16 10:24:43 +03:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
|
|
|
- name: Upload Alpha
|
|
|
|
uses: softprops/action-gh-release@v1
|
|
|
|
if: ${{ success() }}
|
|
|
|
with:
|
2022-06-18 07:49:23 +03:00
|
|
|
tag_name: Prerelease-alpha
|
|
|
|
files: app/build/outputs/apk/meta-alpha/release/*
|
2022-06-16 10:24:43 +03:00
|
|
|
prerelease: true
|
|
|
|
generate_release_notes: true
|
2023-02-09 11:30:15 +03:00
|
|
|
|
|
|
|
- name: Release Changelog Builder
|
|
|
|
uses: mikepenz/release-changelog-builder-action@v3.6.0
|