Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec905e0 commit 3f21086Copy full SHA for 3f21086
1 file changed
.github/workflows/build.yml
@@ -1,10 +1,15 @@
1
-name: Rust
+name: Build / Release
2
3
on:
4
push:
5
branches: [main]
6
pull_request:
7
8
+ workflow_dispatch:
9
+ inputs:
10
+ tag:
11
+ description: "Version tag to create"
12
+ required: false
13
14
env:
15
CARGO_TERM_COLOR: always
@@ -147,3 +152,12 @@ jobs:
147
152
name: codeql-ruby-bundle
148
153
path: codeql-ruby-bundle.zip
149
154
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