lsif.yml 839 B

1234567891011121314151617181920212223242526272829
  1. name: LSIF
  2. on:
  3. push:
  4. paths:
  5. - '**.go'
  6. - 'go.mod'
  7. - '.github/workflows/lsif.yml'
  8. env:
  9. GOPROXY: "https://proxy.golang.org"
  10. jobs:
  11. lsif-go:
  12. if: github.repository == 'gogs/gogs'
  13. runs-on: ubuntu-latest
  14. steps:
  15. - uses: actions/checkout@v2
  16. - name: Generate LSIF data
  17. uses: sourcegraph/lsif-go-action@master
  18. - name: Upload LSIF data to sourcegraph.com
  19. continue-on-error: true
  20. uses: docker://sourcegraph/src-cli:latest
  21. with:
  22. args: lsif upload -github-token=${{ secrets.GITHUB_TOKEN }}
  23. - name: Upload LSIF data to sourcegraph.unknwon.cn
  24. continue-on-error: true
  25. uses: docker://sourcegraph/src-cli:latest
  26. with:
  27. args: -endpoint=https://sourcegraph.unknwon.cn lsif upload -github-token=${{ secrets.GITHUB_TOKEN }}