Skip to content

Commit d743974

Browse files
authored
Automatically attach binaries to a release (#1308)
1 parent 434e96a commit d743974

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/binaries.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ jobs:
102102
- name: Download artefacts
103103
uses: actions/download-artifact@v4
104104

105+
# Create/update the "latest" release
105106
- uses: ncipollo/release-action@v1
106107
with:
107108
name: Latest Nimble Binaries
@@ -111,6 +112,17 @@ jobs:
111112
prerelease: true
112113
tag: latest
113114

115+
# Create a versioned release if this is a tag push
116+
- if: startsWith(github.ref, 'refs/tags/v')
117+
uses: ncipollo/release-action@v1
118+
with:
119+
name: Nimble ${{ github.ref_name }}
120+
artifacts: "*/*"
121+
allowUpdates: true
122+
makeLatest: true
123+
prerelease: false
124+
tag: ${{ github.ref_name }}
125+
114126
- name: Delete artefacts
115127
uses: geekyeggo/delete-artifact@v5
116128
with:

0 commit comments

Comments
 (0)