File tree 1 file changed +20
-0
lines changed
1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change 15
15
startsWith( github.ref, 'refs/tags/devnet-' ) ||
16
16
startsWith( github.ref, 'refs/tags/testnet-' ) ||
17
17
startsWith( github.ref, 'refs/tags/mainnet-' ) }}
18
+ IS_DEVNET_RELEASE : ${{
19
+ startsWith( github.ref, 'refs/tags/devnet-' ) }}
20
+
18
21
19
22
jobs :
20
23
build :
51
54
docker image push "${PUB_IMAGE}"
52
55
}
53
56
echo "${{ secrets.DOCKER_IO_PASS }}" | publish
57
+
58
+ - name : Get binary from docker
59
+ if : env.IS_DEVNET_RELEASE == 'true'
60
+ run : |
61
+ docker create -ti --name container "${DOCKER_IMAGE}" bash
62
+ docker cp container:/home/pyth/pyth-client/target/deploy/pyth_oracle.so .
63
+ docker rm -f container
64
+
65
+ - name : Publish binary
66
+ if : env.IS_DEVNET_RELEASE == 'true'
67
+ uses : svenstaro/upload-release-action@133984371c30d34e38222a64855679a414cb7575
68
+ with :
69
+ repo_token : ${{ secrets.GITHUB_TOKEN }}
70
+ file : ./pyth_oracle.so
71
+ asset_name : pyth_oracle.so
72
+ tag : ${{ github.ref }}
73
+
54
74
pinning :
55
75
runs-on : ubuntu-latest
56
76
steps :
You can’t perform that action at this time.
0 commit comments