Skip to content

Commit c4ce68b

Browse files
committed
run release on tags,disable publish
1 parent 365fe87 commit c4ce68b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/release/.releaserc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@
1212
"assets": ["CHANGELOG.md"],
1313
"message": "release: ${nextRelease.version} [ci skip]"
1414
}
15-
]
15+
],
16+
"publish": false
1617
}

.github/workflows/release.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: Github Release
22
on:
33
push:
4-
branches:
5-
- master
4+
tags:
5+
- '**'
66
jobs:
77
release:
88
runs-on: ubuntu-latest
@@ -13,7 +13,6 @@ jobs:
1313
uses: actions/checkout@v4
1414
- name: Release
1515
uses: softprops/action-gh-release@v2
16-
if: github.ref_type == 'tag'
1716
with:
1817
token: ${{ secrets.GITHUB_TOKEN }}
1918
generate_release_notes: true

0 commit comments

Comments
 (0)