Skip to content
upload

GitHub Action

Sourcegraph LSIF Uploader

0.1.2-dogfood Pre-release

Sourcegraph LSIF Uploader

upload

Sourcegraph LSIF Uploader

Upload LSIF data to a Sourcegraph instance

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Sourcegraph LSIF Uploader

uses: sourcegraph/lsif-upload-action@0.1.2-dogfood

Learn more about this action in sourcegraph/lsif-upload-action

Choose a version

Sourcegraph LSIF Uploader GitHub Action

This action uploads generated LSIF data to a Sourcegraph instance.

Usage

The following inputs can be set.

name default description
file dump.lsif The LSIF dump file to upload.
root '' The root of the LSIF dump.
endpoint https://sourcegraph.com The Sourcegraph instance to target.
ignore_upload_failure false Permit action to succeed if uploading the LSIF dump to endpoint fails.

The following is a complete example that uses the Go indexer action to generate data to upload. Put this in .github/workflows/lsif.yaml.

name: LSIF
on:
  - push
jobs:
  index:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v1
      - name: Generate LSIF data
        uses: sourcegraph/lsif-go-action@master
      - name: Upload LSIF data
        uses: sourcegraph/lsif-upload-action@master
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}