Skip to content

Commit

Permalink
.github/workflows: Update sourcegraph index task.
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaq committed Aug 21, 2024
1 parent 0d14388 commit 8357190
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,15 +159,19 @@ jobs:
- name: Check relative links
run: make -C website check-rellinks

lsif:
name: Upload SourceGraph LSIF
sourcegraph_index:
name: Upload SourceGraph index
if: github.repository == 'elves/elvish' && github.event_name == 'push'
runs-on: ubuntu-latest
container: sourcegraph/lsif-go:latest
container: sourcegraph/scip-go:latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Generate LSIF data
run: lsif-go
- name: Upload LSIF data
run: src lsif upload -github-token=${{ secrets.GITHUB_TOKEN }} -ignore-upload-failure
- name: Get src CLI
run: |
curl -L https://sourcegraph.com/.api/src-cli/src_linux_amd64 -o /usr/local/bin/src
chmod +x /usr/local/bin/src
- name: Generate index
run: scip-go
- name: Upload index
run: src code-intel upload -github-token=${{ secrets.GITHUB_TOKEN }} -no-progress

0 comments on commit 8357190

Please sign in to comment.