aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/lsif.yml
blob: 644f5c6cb63f1c903c244fc445085d414a476e19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: LSIF
on:
  push:
    paths:
      - '**.go'
      - 'go.mod'
      - '.github/workflows/lsif.yml'
env:
  GOPROXY: "https://proxy.golang.org"

jobs:
  lsif-go:
    if: github.repository == 'gogs/gogs'
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Generate LSIF data
        uses: sourcegraph/lsif-go-action@master
      - name: Upload LSIF data to sourcegraph.com
        continue-on-error: true
        uses: docker://sourcegraph/src-cli:latest
        with:
          args: lsif upload -github-token=${{ secrets.GITHUB_TOKEN }}
      - name: Upload LSIF data to S2
        continue-on-error: true
        uses: docker://sourcegraph/src-cli:latest
        with:
          args: -endpoint=https://sourcegraph.sourcegraph.com lsif upload -github-token=${{ secrets.GITHUB_TOKEN }}
      - name: Upload LSIF data to cs.unknwon.dev
        continue-on-error: true
        uses: docker://sourcegraph/src-cli:latest
        with:
          args: -endpoint=https://cs.unknwon.dev lsif upload -github-token=${{ secrets.GITHUB_TOKEN }}