Skip to content

Commit 1c30d7c

Browse files
committed
Publish binary at release
1 parent f514be5 commit 1c30d7c

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/docker.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,24 @@ jobs:
5151
docker image push "${PUB_IMAGE}"
5252
}
5353
echo "${{ secrets.DOCKER_IO_PASS }}" | publish
54+
55+
- name : Get binary from docker
56+
if : env.IS_RELEASE == 'true'
57+
run : |
58+
docker create -ti --name container "${DOCKER_IMAGE}" bash
59+
docker cp container:/home/pyth/pyth-client/target/deploy/pyth_oracle.so .
60+
docker rm -f container
61+
62+
- name : Publish binary
63+
if : env.IS_RELEASE == 'true'
64+
uses: svenstaro/upload-release-action@v2
65+
with:
66+
repo_token: ${{ secrets.GITHUB_TOKEN }}
67+
file: ./pyth_oracle.so
68+
asset_name: pyth_oracle.so
69+
tag: ${{ github.ref }}
70+
overwrite: true
71+
5472
pinning:
5573
runs-on: ubuntu-latest
5674
steps:

0 commit comments

Comments
 (0)