Skip to content

Commit b3b7de5

Browse files
committed
ci: Move the Release to the create-tag workflow
1 parent a53ad2c commit b3b7de5

2 files changed

Lines changed: 11 additions & 22 deletions

File tree

.github/workflows/create-release.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

.github/workflows/create-tag.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,19 @@ jobs:
1212
- uses: actions/checkout@v6
1313

1414
# https://github.com/butlerlogic/action-autotag
15-
- uses: butlerlogic/action-autotag@1.1.2
15+
- id: autotag
16+
uses: butlerlogic/action-autotag@1.1.2
1617
env:
1718
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
1819
with:
1920
root: clib.json
2021
tag_prefix: "v"
22+
23+
# https://github.com/softprops/action-gh-release
24+
- name: Release
25+
if: steps.autotag.outputs.tagcreated == 'yes'
26+
uses: softprops/action-gh-release@v2
27+
with:
28+
tag_name: "${{ steps.autotag.outputs.tagname }}"
29+
generate_release_notes: true
30+
token: "${{ secrets.GITHUB_TOKEN }}"

0 commit comments

Comments
 (0)