Skip to content

Commit

Permalink
chore: make version apk compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
douglarek committed Nov 24, 2024
1 parent e1e8404 commit 554268a
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/build-alpha.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
run: |
git clone https://github.com/MetaCubeX/mihomo.git -b Alpha
cd mihomo
VER=$(git log -1 --format="%cd" --date=format:'%Y%m%d%H%M%S' | sed s/-//g)
VER="$(git log -1 --format="%cd" --date=format:'%Y%m%d%H%M%S' | sed s/-//g)"~"$(git rev-parse --short HEAD)"
echo "PKG_VER=$VER" >> $GITHUB_ENV
echo "HEAD_REF=$(git rev-parse HEAD)" >> $GITHUB_ENV
cd -
Expand Down Expand Up @@ -108,13 +108,24 @@ jobs:
tag=$(date +"%Y%m%d")
echo "RELEASE_TAG=$tag" >> $GITHUB_OUTPUT
- name: Delete old release assets
uses: mknejp/delete-release-assets@v1
continue-on-error: true
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ steps.read_release.outputs.RELEASE_TAG }}
assets: |
mihomo-[0-9]{14}\.[a-f0-9]{8}-*_${{ matrix.arch }}.apk
- name: Publishing to GitHub Releases
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: sdk/bin/packages/*/*/mihomo*.apk
tag: ${{ steps.read_release.outputs.RELEASE_TAG }}
file_glob: true
asset_name: ${{ env.PKG_NAME }}
overwrite: true
body: |
${{ steps.read_release.outputs.RELEASE_BODY }}

0 comments on commit 554268a

Please sign in to comment.