Skip to content

Commit

Permalink
ci: fix publishing workflows, disable LSIF upload (#629)
Browse files Browse the repository at this point in the history
follow-up to #628,  #622
  • Loading branch information
bobheadxi authored Oct 20, 2019
1 parent 4c33d2f commit 13601e2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 15 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/lsif.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 }}
6 changes: 3 additions & 3 deletions .github/workflows/publish-latest.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Pipeline
name: Publish (latest)

on:
push:
Expand All @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Pipeline
name: Publish (release)

on:
release:
Expand Down

0 comments on commit 13601e2

Please sign in to comment.