mirror of
https://github.com/MetaCubeX/ClashMetaForAndroid.git
synced 2024-11-16 04:32:17 +08:00
Merge pull request #148 from Doddddd/patch-1
Update build-release workflows
This commit is contained in:
commit
15e0d87c6d
10
.github/workflows/build-release.yaml
vendored
10
.github/workflows/build-release.yaml
vendored
|
@ -64,8 +64,8 @@ jobs:
|
|||
newVersionCode=$((versionCode + 1))
|
||||
sed -i "s/versionCode = $versionCode/versionCode = $newVersionCode/" build.gradle.kts
|
||||
sed -i "s/versionName = \"$versionName\"/versionName = \"$newVersionName\"/" build.gradle.kts
|
||||
echo "::set-output name=newVersionName::$newVersionName"
|
||||
echo "::set-output name=newVersionCode::$newVersionCode"
|
||||
echo "newVersionName=$newVersionName" >> $GITHUB_OUTPUT
|
||||
echo "newVersionCode=$newVersionCode" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Commit modified version code and make new tag
|
||||
if: ${{ inputs.auto-bump-version }}
|
||||
|
@ -101,9 +101,9 @@ jobs:
|
|||
id: real_tag
|
||||
run: |
|
||||
if [[ "${{ inputs.auto-bump-version }}" == "true" ]]; then
|
||||
echo "::set-output name=tag::v${{ steps.bump-version.outputs.newVersionName }}"
|
||||
echo "tag=v${{ steps.bump-version.outputs.newVersionName }}" >> $GITHUB_OUTPUT
|
||||
else
|
||||
echo "::set-output name=tag::$(git describe --tags --abbrev=0)"
|
||||
echo "tag=$(git describe --tags --abbrev=0)" >> $GITHUB_OUTPUT
|
||||
fi
|
||||
|
||||
- name: Tag Repo
|
||||
|
@ -115,7 +115,7 @@ jobs:
|
|||
|
||||
- name: Upload Release
|
||||
uses: softprops/action-gh-release@v1
|
||||
if: ${{ success() }}
|
||||
if: ${{ success() }}
|
||||
with:
|
||||
tag_name: ${{ steps.real_tag.outputs.tag }}
|
||||
files: app/build/outputs/apk/meta/release/*
|
||||
|
|
Loading…
Reference in New Issue
Block a user