feat: 增加发布 Releases

This commit is contained in:
dnslin
2025-12-15 15:56:58 +08:00
parent 7df7c35c24
commit 338ba3410c
3 changed files with 150 additions and 1 deletions

View File

@@ -16,7 +16,7 @@ jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
contents: write
packages: write
steps:
@@ -62,3 +62,19 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Create Release
if: startsWith(github.ref, 'refs/tags/v')
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
body: |
## Docker 镜像
```bash
# Docker Hub
docker pull dnslin/aria2bot:${{ github.ref_name }}
# GitHub Container Registry
docker pull ghcr.io/${{ github.repository }}:${{ github.ref_name }}
```