mirror of
https://github.com/MetaCubeX/ClashMetaForAndroid.git
synced 2024-11-23 13:56:08 +03:00
8fa4e33bda
* Add renovate.json * fix(deps): update dependency org.jetbrains.kotlinx:kotlinx-coroutines-android to v1.7.3 * chore(deps): update dependency gradle to v7.6.3 * chore(deps): update devofure/advance-android-version-actions action to v1.5 * chore(deps): update mikepenz/release-changelog-builder-action action to v3.7.3 * chore(deps): update actions/upload-artifact action to v4 * chore(deps): update mikepenz/release-changelog-builder-action action to v4 * chore(deps): update actions/setup-go action to v5 * chore(deps): update actions/setup-java action to v4 * chore(deps): update actions/cache action to v4 * chore(deps): update actions/checkout action to v4 * chore(deps): update tibdex/github-app-token action to v2 --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
80 lines
2.3 KiB
YAML
80 lines
2.3 KiB
YAML
name: Build Pre-Release
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
BuildPreRelease:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout Repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Checkout submodules
|
|
run: git submodule update --init --recursive --remote --force
|
|
|
|
- name: Setup Java
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
distribution: 'zulu'
|
|
java-version: 17
|
|
|
|
- name: Setup Go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version: "1.20"
|
|
|
|
- uses: actions/cache@v4
|
|
with:
|
|
path: |
|
|
~/.cache/go-build
|
|
~/go/pkg/mod
|
|
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-go-
|
|
|
|
- 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
|
|
if: success()
|
|
uses: gradle/gradle-build-action@v2
|
|
with:
|
|
arguments: --no-daemon app:assembleMeta-AlphaRelease
|
|
|
|
# Delete old Prerelease-alpha
|
|
- uses: dev-drprasad/delete-tag-and-release@v1.0
|
|
with:
|
|
tag_name: Prerelease-alpha
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
delete_release: true
|
|
|
|
- name: Tag Repo
|
|
uses: richardsimko/update-tag@v1
|
|
with:
|
|
tag_name: Prerelease-alpha
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Upload Alpha
|
|
uses: softprops/action-gh-release@v1
|
|
if: ${{ success() }}
|
|
with:
|
|
tag_name: Prerelease-alpha
|
|
files: app/build/outputs/apk/meta-alpha/release/*
|
|
prerelease: true
|
|
generate_release_notes: true
|
|
|
|
- name: Release Changelog Builder
|
|
uses: mikepenz/release-changelog-builder-action@v4.1.1
|