|
15 | 15 | DOCKER_USER: ${{ secrets.DOCKER_IO_USER }} |
16 | 16 | IS_RELEASE: ${{ |
17 | 17 | startsWith( github.ref, 'refs/tags/pythd-' ) || |
18 | | - startsWith( github.ref, 'refs/tags/mainnet-' ) }} || |
19 | | - startsWith( github.ref, 'refs/tags/pythnet-' ) }} |
20 | | - IS_MAINNET_RELEASE: ${{ |
21 | | - startsWith( github.ref, 'refs/tags/mainnet-' ) }} |
22 | | - IS_PYTHNET_RELEASE: ${{ |
23 | | - startsWith( github.ref, 'refs/tags/pythnet-' ) }} |
| 18 | + startsWith( github.ref, 'refs/tags/oracle-' ) }} |
| 19 | + IS_ORACLE_RELEASE: ${{ |
| 20 | + startsWith( github.ref, 'refs/tags/oracle-' ) }} |
24 | 21 |
|
25 | 22 |
|
26 | 23 | jobs: |
@@ -59,31 +56,25 @@ jobs: |
59 | 56 | } |
60 | 57 | echo "${{ secrets.DOCKER_IO_PASS }}" | publish |
61 | 58 |
|
62 | | - - name : Get Mainnet binary from docker |
63 | | - if : env.IS_MAINNET_RELEASE == 'true' |
| 59 | + - name : Get binary from docker |
| 60 | + if : env.IS_ORACLE_RELEASE == 'true' |
64 | 61 | run : | |
65 | 62 | docker create -ti --name container "${DOCKER_IMAGE}" bash |
| 63 | + docker cp container:/home/pyth/pyth-client/target/pyth/pythnet/pyth_oracle_pythnet.so . |
66 | 64 | docker cp container:/home/pyth/pyth-client/target/pyth/solana/pyth_oracle_solana.so . |
67 | 65 | docker rm -f container |
68 | 66 |
|
69 | | - - name : Publish Mainnet binary |
70 | | - if : env.IS_MAINNET_RELEASE == 'true' |
| 67 | + - name : Publish Solana binary |
| 68 | + if : env.IS_ORACLE_RELEASE == 'true' |
71 | 69 | uses: svenstaro/upload-release-action@133984371c30d34e38222a64855679a414cb7575 |
72 | 70 | with: |
73 | 71 | repo_token: ${{ secrets.GITHUB_TOKEN }} |
74 | 72 | file: ./pyth_oracle_solana.so |
75 | 73 | asset_name: pyth_oracle_solana.so |
76 | 74 | tag: ${{ github.ref }} |
77 | | - |
78 | | - - name : Get Pythnet binary from docker |
79 | | - if : env.IS_PYTHNET_RELEASE == 'true' |
80 | | - run : | |
81 | | - docker create -ti --name container "${DOCKER_IMAGE}" bash |
82 | | - docker cp container:/home/pyth/pyth-client/target/pyth/pythnet/pyth_oracle_pythnet.so . |
83 | | - docker rm -f container |
84 | | -
|
| 75 | + |
85 | 76 | - name : Publish Pythnet binary |
86 | | - if : env.IS_PYTHNET_RELEASE == 'true' |
| 77 | + if : env.IS_ORACLE_RELEASE == 'true' |
87 | 78 | uses: svenstaro/upload-release-action@133984371c30d34e38222a64855679a414cb7575 |
88 | 79 | with: |
89 | 80 | repo_token: ${{ secrets.GITHUB_TOKEN }} |
|
0 commit comments