diff --git a/.github/workflows/lsif.yml b/.github/workflows/lsif.yml index 8881a1e0..510ced58 100644 --- a/.github/workflows/lsif.yml +++ b/.github/workflows/lsif.yml @@ -2,7 +2,8 @@ name: LSIF Upload on: push: - branches: [ 'master' ] + # TODO: enable when this feature stabilizes on sourcegraph's end + branches: [ lsif ] jobs: build: @@ -17,13 +18,8 @@ jobs: run: go get github.com/sourcegraph/lsif-go/cmd/lsif-go - name: Generate LSIF data run: go run github.com/sourcegraph/lsif-go/cmd/lsif-go --noContents --out=data.lsif - - name: Download LSIF to Sourcegraph uploader - run: curl -O https://raw.githubusercontent.com/sourcegraph/sourcegraph/master/lsif/upload.sh - - name: Upload LSIF to Sourcegraph - run: | - env \ - SRC_ENDPOINT=https://sourcegraph.com \ - REPOSITORY=github.com/ubclaunchpad/inertia \ - COMMIT=$(git rev-parse HEAD | tr -d "\n") \ - SRC_LSIF_UPLOAD_TOKEN=${{ secrets.sourcegraph_lsif_token }} \ - bash upload.sh data.lsif + - name: Upload LSIF data + uses: sourcegraph/lsif-upload-action@0.1.2-dogfood + with: + file: data.lsif + access_token: ${{ secrets.sourcegraph_lsif_token }} diff --git a/.github/workflows/publish-latest.yml b/.github/workflows/publish-latest.yml index 82f1c083..eea7e4d1 100644 --- a/.github/workflows/publish-latest.yml +++ b/.github/workflows/publish-latest.yml @@ -1,4 +1,4 @@ -name: Pipeline +name: Publish (latest) on: push: @@ -11,5 +11,5 @@ jobs: - uses: actions/checkout@v1 - name: Build and publish daemon:latest run: | - - docker login -u ${{ secrets.docker_user }} -p ${{ secrets.docker_key }} - - make daemon-release RELEASE=latest + docker login -u ${{ secrets.docker_user }} -p ${{ secrets.docker_key }} + make daemon-release RELEASE=latest diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 63d90f45..1d1ef4e7 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -1,4 +1,4 @@ -name: Pipeline +name: Publish (release) on: release: