Optimize badges (#2356)

* Switch Readme to show total downloads of all time

* Add download counter for specific releases automatically to release
This commit is contained in:
Martin Wiethan
2024-07-15 03:16:38 +02:00
committed by GitHub
parent ac9b4fd645
commit ff0b3d29cf
3 changed files with 7 additions and 3 deletions

View File

@ -40,6 +40,8 @@ jobs:
with:
tag_name: ${{ steps.extract_version.outputs.version }}
name: Pre-Release ${{ steps.extract_version.outputs.version }}
body: "![GitHub Downloads (specific asset, specific tag)](https://img.shields.io/github/downloads/ChrisTitusTech/winutil/${{ steps.extract_version.outputs.version }}/winutil.ps1)"
append_body: true
files: ./winutil.ps1
prerelease: true
env:

View File

@ -36,6 +36,8 @@ jobs:
with:
tag_name: ${{ steps.extract_version.outputs.version }}
name: Release ${{ steps.extract_version.outputs.version }}
body: "![GitHub Downloads (specific asset, specific tag)](https://img.shields.io/github/downloads/ChrisTitusTech/winutil/${{ steps.extract_version.outputs.version }}/winutil.ps1)"
append_body: true
files: ./winutil.ps1
prerelease: false
make_latest: "true"