Skip to content

Commit 0103ad9

Browse files
committed
ci: Add artifact upload
1 parent 5d7d65e commit 0103ad9

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/build.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,16 @@ jobs:
6767
PLATFORM=${{ env.PLATFORM }}
6868
tags: ${{ steps.meta.outputs.tags || steps.meta-pr.outputs.tags }}
6969
labels: ${{ steps.meta.outputs.labels || steps.meta-pr.outputs.labels }}
70+
- name: Extract binary from Docker
71+
if: ${{ github.event_name != 'pull_request' }}
72+
run: |
73+
docker create --name extract ghcr.io/huggingface/inference-benchmarker:sha-${{ env.GITHUB_SHA_SHORT }}
74+
docker cp extract:/usr/local/bin/inference-benchmarker ${{ github.workspace }}/inference-benchmarker
75+
docker rm -f extract
76+
- name: Upload binary
77+
if: ${{ github.event_name != 'pull_request' }}
78+
uses: actions/upload-artifact@v2
79+
with:
80+
name: inference-benchmarker
81+
path: ${{ github.workspace }}/inference-benchmarker
82+

0 commit comments

Comments
 (0)