Skip to content

Commit

Permalink
chore: always build the latest release
Browse files Browse the repository at this point in the history
  • Loading branch information
douglarek committed Nov 30, 2024
1 parent 554268a commit 763a07d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
13 changes: 1 addition & 12 deletions .github/workflows/build-alpha.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,25 +105,14 @@ jobs:
r="${r//$'\n'/'%0A'}"
r="${r//$'\r'/'%0D'}"
echo "RELEASE_BODY=$r" >> $GITHUB_OUTPUT
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 }}
tag: latest
file_glob: true
asset_name: ${{ env.PKG_NAME }}
overwrite: true
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,16 +101,13 @@ jobs:
r="${r//$'\n'/'%0A'}"
r="${r//$'\r'/'%0D'}"
echo "RELEASE_BODY=$r" >> $GITHUB_OUTPUT
tag=$(date +"%Y%m%d")
echo "RELEASE_TAG=$tag" >> $GITHUB_OUTPUT
- 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 }}
tag: latest
file_glob: true
overwrite: true
body: |
Expand Down

0 comments on commit 763a07d

Please sign in to comment.