diff --git a/.github/workflows/build-alpha.yml b/.github/workflows/build-alpha.yml index f243e34..5e90d18 100644 --- a/.github/workflows/build-alpha.yml +++ b/.github/workflows/build-alpha.yml @@ -105,17 +105,6 @@ 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 @@ -123,7 +112,7 @@ jobs: 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 diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9a8b89b..9c2e97d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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: |