lsif.yml 775 B

123456789101112131415161718192021222324
  1. name: LSIF
  2. on: [push]
  3. jobs:
  4. lsif-go:
  5. if: github.repository == 'gogs/gogs'
  6. runs-on: ubuntu-latest
  7. steps:
  8. - uses: actions/checkout@v1
  9. - name: Generate LSIF data
  10. uses: sourcegraph/lsif-go-action@master
  11. with:
  12. verbose: 'true'
  13. - name: Upload LSIF data to sourcegraph.com
  14. uses: sourcegraph/lsif-upload-action@master
  15. continue-on-error: true
  16. with:
  17. endpoint: https://sourcegraph.com
  18. github_token: ${{ secrets.GITHUB_TOKEN }}
  19. - name: Upload LSIF data to sourcegraph.unknwon.cn
  20. uses: sourcegraph/lsif-upload-action@master
  21. continue-on-error: true
  22. with:
  23. endpoint: https://sourcegraph.unknwon.cn
  24. github_token: ${{ secrets.GITHUB_TOKEN }}