diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 117278a..1398dee 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,17 +17,25 @@ jobs: - name: Check out code uses: actions/checkout@v3 + - name: Generate Version + id: shell + run: | + echo "version=$(date -u '+%Y.%-m%d.%-H%M.0')" >> $GITHUB_OUTPUT + - name: Make bundle run: | + echo v${{ steps.shell.outputs.version }} > VERSION mkdir -p MetaTube.bundle/ + mv VERSION MetaTube.bundle/ mv Contents/ MetaTube.bundle/ zip -r MetaTube.bundle.zip MetaTube.bundle/ - name: Upload Releases uses: softprops/action-gh-release@v1 with: - files: 'MetaTube.bundle.zip' - body: '_Auto Released by GitHub Actions_' - tag_name: 'bundle' + files: MetaTube.bundle.zip + body: _Auto Released by GitHub Actions_ + name: v${{ steps.shell.outputs.version }} + tag_name: bundle draft: false prerelease: false diff --git a/README.md b/README.md index d5d7bef..b3018fa 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,9 @@ [![GitHub top language](https://img.shields.io/github/languages/top/metatube-community/MetaTube.bundle?color=%23FFD43B&label=Python&logo=python)](https://github.com/metatube-community/MetaTube.bundle/search?l=python) [![License](https://img.shields.io/github/license/metatube-community/MetaTube.bundle)](https://github.com/metatube-community/MetaTube.bundle/blob/main/LICENSE) [![Telegram Group](https://img.shields.io/badge/Telegram-2CA5E0?logo=telegram&logoColor=white)](https://t.me/MetaTubePlugin) +[![GitHub all releases](https://img.shields.io/github/downloads/metatube-community/MetaTube.bundle/total)](https://github.com/metatube-community/MetaTube.bundle) [![Docker Pulls](https://img.shields.io/docker/pulls/metatube/metatube-server?logo=docker)](https://hub.docker.com/r/metatube/metatube-server) +[![Releases](https://img.shields.io/github/v/release/metatube-community/MetaTube.bundle?display_name=release&logo=smartthings)](https://github.com/metatube-community/MetaTube.bundle/releases) ## Features diff --git a/README_ZH.md b/README_ZH.md index 482bf31..c4b4f10 100644 --- a/README_ZH.md +++ b/README_ZH.md @@ -8,7 +8,9 @@ [![GitHub top language](https://img.shields.io/github/languages/top/metatube-community/MetaTube.bundle?color=%23FFD43B&label=Python&logo=python)](https://github.com/metatube-community/MetaTube.bundle/search?l=python) [![License](https://img.shields.io/github/license/metatube-community/MetaTube.bundle)](https://github.com/metatube-community/MetaTube.bundle/blob/main/LICENSE) [![Telegram Group](https://img.shields.io/badge/Telegram-2CA5E0?logo=telegram&logoColor=white)](https://t.me/MetaTubePlugin) +[![GitHub all releases](https://img.shields.io/github/downloads/metatube-community/MetaTube.bundle/total)](https://github.com/metatube-community/MetaTube.bundle) [![Docker Pulls](https://img.shields.io/docker/pulls/metatube/metatube-server?logo=docker)](https://hub.docker.com/r/metatube/metatube-server) +[![Releases](https://img.shields.io/github/v/release/metatube-community/MetaTube.bundle?display_name=release&logo=smartthings)](https://github.com/metatube-community/MetaTube.bundle/releases) ## 特性