update bindings #2695
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Sourcegraph | |
on: | |
push: | |
paths: | |
- '**.kt' | |
- '**.java' | |
- '**.kts' | |
- '.github/workflows/scip-java.yml' | |
jobs: | |
scip-java: | |
if: github.repository == 'sourcegraph/jetbrains' | |
runs-on: ubuntu-latest | |
name: "Upload SCIP" | |
steps: | |
- uses: actions/checkout@v4 | |
- run: yarn global add [email protected] | |
- run: echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT | |
shell: bash | |
id: pnpm-cache | |
- name: Cache pnpm store | |
uses: actions/cache@v4 | |
with: | |
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} | |
key: ${{ runner.os }}-${{ matrix.node }}-pnpm-store- | |
restore-keys: ${{ runner.os }}-${{ matrix.node }}-pnpm-store-k | |
- uses: actions/cache@v4 | |
with: | |
path: | | |
~/.gradle/caches | |
~/.gradle/wrapper | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties', 'gradle.properties') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
- uses: coursier/setup-action@v1 | |
with: | |
jvm: 'zulu:11' | |
apps: scip-java | |
- name: Generate SCIP File | |
run: scip-java index --build-tool=gradle | |
- name: Install src | |
run: yarn global add @sourcegraph/src | |
- 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 }} |