Skip to content

Commit 269b8b9

Browse files
committed
Update for review comments
1 parent c1e2c53 commit 269b8b9

1 file changed

Lines changed: 15 additions & 8 deletions

File tree

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build runner
1+
name: Release runner
22

33
on:
44
workflow_dispatch:
@@ -8,7 +8,7 @@ on:
88
required: true
99

1010
jobs:
11-
build-runner:
11+
release-runner:
1212
runs-on: ubuntu-latest
1313
env:
1414
RELEASE_TAG: "${{ github.event.inputs.bundle-tag }}"
@@ -20,7 +20,19 @@ jobs:
2020
steps:
2121
- uses: actions/checkout@v2
2222

23+
- name: Build runner
24+
run: |
25+
cd runner
26+
npm install
27+
npm run build-runner
28+
29+
- uses: actions/upload-artifact@v2
30+
with:
31+
name: codeql-runner-${{matrix.extension}}
32+
path: runner/dist/codeql-runner-${{matrix.extension}}
33+
2334
- name: Resolve Upload URL for the release
35+
if: ${{ github.event.inputs.bundle-tag != null }}
2436
id: save_url
2537
run: |
2638
UPLOAD_URL=$(curl -sS \
@@ -30,13 +42,8 @@ jobs:
3042
echo ${UPLOAD_URL}
3143
echo "::set-output name=upload_url::${UPLOAD_URL}"
3244
33-
- name: Build runner
34-
run: |
35-
cd runner
36-
npm install
37-
npm run build-runner
38-
3945
- name: Upload Platform Package
46+
if: ${{ github.event.inputs.bundle-tag != null }}
4047
uses: actions/upload-release-asset@v1
4148
env:
4249
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)