Upload sourcegraph index in GitHub Action.

This commit is contained in:
Qi Xiao 2021-02-21 23:48:42 +00:00
parent 9ebb46be0f
commit 878590f2b0

16
.github/workflows/sourcegraph.yml vendored Normal file
View File

@ -0,0 +1,16 @@
name: SourceGraph Index
on:
push:
jobs:
lsif-go:
runs-on: ubuntu-latest
container: sourcegraph/lsif-go:latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Generate LSIF data
run: lsif-go
- name: Upload LSIF data
run: src lsif upload -github-token=${{ secrets.GITHUB_TOKEN }} -ignore-upload-failure