Skip to content

Commit 9c085c3

Browse files
authored
chore: create Github release in CI release workflow (#107)
1 parent 0524334 commit 9c085c3

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ jobs:
190190
run: make -j build/image/envbox
191191

192192
- name: Run Trivy vulnerability scanner
193-
uses: aquasecurity/trivy-action@8bd2f9fbda2109502356ff8a6a89da55b1ead252
193+
uses: aquasecurity/trivy-action@0.29.0
194194
with:
195195
image-ref: envbox:latest
196196
format: sarif

.github/workflows/release.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,3 +124,11 @@ jobs:
124124
run: |
125125
git tag -a ${{ github.event.inputs.version }} -m ${{ github.event.inputs.version }}
126126
git push --tags
127+
- name: Create Release
128+
run: |
129+
version=${{ github.event.inputs.version }}
130+
if [[ $version == *-rc* ]]; then
131+
gh release create "$version" -t "$version" --generate-notes --prerelease --latest=false --verify-tag
132+
else
133+
gh release create $version -t $version --generate-notes --verify-tag
134+
fi

0 commit comments

Comments
 (0)