Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3f21086

Browse files
committed
Build workflow: create release
1 parent ec905e0 commit 3f21086

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1-
name: Rust
1+
name: Build / Release
22

33
on:
44
push:
55
branches: [main]
66
pull_request:
77
branches: [main]
8+
workflow_dispatch:
9+
inputs:
10+
tag:
11+
description: "Version tag to create"
12+
required: false
813

914
env:
1015
CARGO_TERM_COLOR: always
@@ -147,3 +152,12 @@ jobs:
147152
name: codeql-ruby-bundle
148153
path: codeql-ruby-bundle.zip
149154
retention-days: 1
155+
- if: ${{ github.event.inputs.tag }}
156+
run: |
157+
gh release create --prerelease \
158+
--title "CodeQL Ruby (${{ github.event.inputs.tag }})" \
159+
--target "${{ github.sha }}" \
160+
"${{ github.event.inputs.tag }}" \
161+
codeql-ruby-bundle.zip
162+
env:
163+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)