Skip to content

Commit

Permalink
Restricting to linux asset
Browse files Browse the repository at this point in the history
  • Loading branch information
jdewinne committed Dec 16, 2020
1 parent db899f2 commit a13a7a4
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ jobs:
echo "${{ secrets.BUILDBUDDY_ORG_KEY }}">buildbuddy-key.pem
- name: Build Linux
run: |
"${GITHUB_WORKSPACE}/bin/bazel" build --config=ci --platforms=@io_bazel_rules_go//go/toolchain:linux_amd64 //...
"${GITHUB_WORKSPACE}/bin/bazel" build --config=ci //...
- name: Test Linux
run: |
"${GITHUB_WORKSPACE}/bin/bazel" test --config=ci --platforms=@io_bazel_rules_go//go/toolchain:linux_amd64 //...
"${GITHUB_WORKSPACE}/bin/bazel" test --config=ci //...
- name: Upload linux Asset
id: upload-linux-asset
uses: actions/upload-release-asset@v1
Expand All @@ -48,20 +48,4 @@ jobs:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ./bazel-bin/k8s-dev-scaler_/k8s-dev-scaler
asset_name: k8s-dev-scaler
asset_content_type: application/octet-stream
- name: Build darwin
run: |
"${GITHUB_WORKSPACE}/bin/bazel" build --config=ci --platforms=@io_bazel_rules_go//go/toolchain:darwin_amd64 //...
- name: Test darwin
run: |
"${GITHUB_WORKSPACE}/bin/bazel" test --config=ci --platforms=@io_bazel_rules_go//go/toolchain:darwin_amd64 //...
- name: Upload darwin Asset
id: upload-darwin-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ./bazel-bin/k8s-dev-scaler_/k8s-dev-scaler
asset_name: k8s-dev-scaler.mac
asset_content_type: application/octet-stream

0 comments on commit a13a7a4

Please sign in to comment.