mirror of
https://github.com/MetaCubeX/ClashMetaForAndroid.git
synced 2024-12-02 10:16:08 +03:00
14a961f521
* add: Create dependabot.yml * chore: Create update-dependencies.yml * chore: Update update-dependencies.yml * fix: switch meta core upstream * chore: Update update-dependencies.yml * chore: Update update-dependencies.yml * chore: Update update-dependencies.yml * chore: Update build-unsigned.yaml * chore: Delete .github/dependabot.yml * chore: Run build-unsigned for each PR * chore: Better PR info and add repo dispatch listener * chore: Better actions name * chore: rename ci file and try to fix failure * chore: add manual auto project version bump * chore: Fix wrong command usage * chore: fix path * chore: Fix * chore: Fix bump project version * chore: can this pass compile? * chore: update core to newest alpha * Update update-dependencies.yaml * chore: try to change core upstream * chore: remove all go get update to pass compile * Revert "chore: remove all go get update to pass compile" This reverts commitaad0ec3b83
. * Revert "chore: can this pass compile?" This reverts commit635289639b
. * chore: force update submodule * chore: change upstream to alpha * chore: remove rubbish * chore: change upstream and update core * chore: add version fixed packages * chore: small fix * chore: update go dependencies * chore: revert some depends to old versions to fix compile * fix: fix compile error caused by core's deprecation * chore: fix actions and update core * chore: update clash core * fix: fix block calling * chore: update app version * chore: small fix to actions * feat: add Hysteria2 for UI * chore: revert version update for actions test * chore: try recover main go mod upgrade * chore: fix tag logic in release actions * Bump version to 2.8.10 (208010) * chore: remove test code in actions --------- Co-authored-by: GitHub Action <action@github.com>
81 lines
2.3 KiB
YAML
81 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@v3
|
|
|
|
- name: Checkout submodules
|
|
run: git submodule update --init --recursive --remote
|
|
|
|
- name: Setup Java
|
|
uses: actions/setup-java@v3
|
|
with:
|
|
distribution: 'zulu'
|
|
java-version: 17
|
|
|
|
- name: Setup Go
|
|
uses: actions/setup-go@v3
|
|
with:
|
|
go-version: "1.20"
|
|
|
|
- uses: actions/cache@v3
|
|
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
|
|
|
|
- name: Delete current release assets
|
|
uses: andreaswilli/delete-release-assets-action@v2.0.0
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
tag: Prerelease-alpha
|
|
deleteOnlyFromDrafts: false
|
|
|
|
- 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: ${{ github.ref_name }}
|
|
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@v3.6.0
|