Update for review comments
This commit is contained in:
parent
c1e2c53b95
commit
269b8b9bae
1 changed files with 15 additions and 8 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
name: Build runner
|
name: Release runner
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
@ -8,7 +8,7 @@ on:
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-runner:
|
release-runner:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
RELEASE_TAG: "${{ github.event.inputs.bundle-tag }}"
|
RELEASE_TAG: "${{ github.event.inputs.bundle-tag }}"
|
||||||
|
|
@ -20,7 +20,19 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Build runner
|
||||||
|
run: |
|
||||||
|
cd runner
|
||||||
|
npm install
|
||||||
|
npm run build-runner
|
||||||
|
|
||||||
|
- uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: codeql-runner-${{matrix.extension}}
|
||||||
|
path: runner/dist/codeql-runner-${{matrix.extension}}
|
||||||
|
|
||||||
- name: Resolve Upload URL for the release
|
- name: Resolve Upload URL for the release
|
||||||
|
if: ${{ github.event.inputs.bundle-tag != null }}
|
||||||
id: save_url
|
id: save_url
|
||||||
run: |
|
run: |
|
||||||
UPLOAD_URL=$(curl -sS \
|
UPLOAD_URL=$(curl -sS \
|
||||||
|
|
@ -30,13 +42,8 @@ jobs:
|
||||||
echo ${UPLOAD_URL}
|
echo ${UPLOAD_URL}
|
||||||
echo "::set-output name=upload_url::${UPLOAD_URL}"
|
echo "::set-output name=upload_url::${UPLOAD_URL}"
|
||||||
|
|
||||||
- name: Build runner
|
|
||||||
run: |
|
|
||||||
cd runner
|
|
||||||
npm install
|
|
||||||
npm run build-runner
|
|
||||||
|
|
||||||
- name: Upload Platform Package
|
- name: Upload Platform Package
|
||||||
|
if: ${{ github.event.inputs.bundle-tag != null }}
|
||||||
uses: actions/upload-release-asset@v1
|
uses: actions/upload-release-asset@v1
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue