Skip to content

Commit 483d674

Browse files
committed
Upload sourcemaps as release asset
This will upload the sourcemaps produced as part of the release as a release asset. This allows the sourcemaps to be downloaded and used for decoding stack traces beyond the 90 day artifact limit of GitHub Actions.
1 parent 24e4708 commit 483d674

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,23 @@ jobs:
9494
asset_name: ${{ format('vscode-codeql-{0}.vsix', steps.prepare-artifacts.outputs.ref_name) }}
9595
asset_content_type: application/zip
9696

97+
- name: Create sourcemap ZIP file
98+
run: |
99+
cd dist/vscode-codeql/out
100+
zip -r ../../vscode-codeql-sourcemaps.zip *.map
101+
102+
- name: Upload sourcemap ZIP file
103+
uses: actions/upload-release-asset@v1.0.1
104+
if: success()
105+
env:
106+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
107+
with:
108+
# Get the `upload_url` from the `create-release` step above.
109+
upload_url: ${{ steps.create-release.outputs.upload_url }}
110+
asset_path: dist/vscode-codeql-sourcemaps.zip
111+
asset_name: ${{ format('vscode-codeql-sourcemaps-{0}.zip', steps.prepare-artifacts.outputs.ref_name) }}
112+
asset_content_type: application/zip
113+
97114
###
98115
# Do Post release work: version bump and changelog PR
99116
# Only do this if we are running from a PR (ie- this is part of the release process)

0 commit comments

Comments
 (0)