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 6628a0b
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,15 +159,23 @@ 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
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: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.23.x
- name: Get tools
run: |
curl -L https://sourcegraph.com/.api/src-cli/src_linux_amd64 -o /usr/local/bin/src
chmod +x /usr/local/bin/src
go install github.com/sourcegraph/scip-go/cmd/scip-go@latest
- 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 6628a0b

Please sign in to comment.