mirror of
https://github.com/lkddi/dell-fans-controller-docker.git
synced 2026-05-19 06:07:28 +08:00
发布标签时同步创建GitHub Release
This commit is contained in:
@@ -12,7 +12,7 @@ jobs:
|
||||
docker:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
contents: write
|
||||
packages: write
|
||||
|
||||
steps:
|
||||
@@ -54,3 +54,13 @@ jobs:
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
|
||||
- name: Create GitHub Release
|
||||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
run: |
|
||||
gh release create "${GITHUB_REF_NAME}" \
|
||||
--repo "${GITHUB_REPOSITORY}" \
|
||||
--title "${GITHUB_REF_NAME}" \
|
||||
--generate-notes
|
||||
|
||||
Reference in New Issue
Block a user