Skip to content

Commit

Permalink
Fix SCIP uploads in CI (#343)
Browse files Browse the repository at this point in the history
  • Loading branch information
varungandhi-src authored May 15, 2024
1 parent fe9aff0 commit f07f454
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 17 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/scip.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: 'Upload SCIP to Sourcegraph'
on:
push:
branches:
- main
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: yarn install
- run: yarn global add ts-node @sourcegraph/src
- run: ts-node src/main.ts index

- name: Upload SCIP to Cloud
run: src code-intel upload -github-token='${{ secrets.GITHUB_TOKEN }}' -no-progress
env:
SRC_ENDPOINT: https://sourcegraph.com/
SRC_ACCESS_TOKEN: ${{ secrets.SRC_ACCESS_TOKEN_DOTCOM }}

- name: Upload SCIP to S2
run: src code-intel upload -github-token='${{ secrets.GITHUB_TOKEN }}' -no-progress
env:
SRC_ENDPOINT: https://sourcegraph.sourcegraph.com/
SRC_ACCESS_TOKEN: ${{ secrets.SRC_ACCESS_TOKEN_S2 }}
17 changes: 0 additions & 17 deletions .github/workflows/sourcegraph.yml

This file was deleted.

0 comments on commit f07f454

Please sign in to comment.