-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: fix publishing workflows, disable LSIF upload (#629)
- Loading branch information
Showing
3 changed files
with
11 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[email protected] | ||
with: | ||
file: data.lsif | ||
access_token: ${{ secrets.sourcegraph_lsif_token }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Pipeline | ||
name: Publish (release) | ||
|
||
on: | ||
release: | ||
|