Skip to content

Commit 6deffc0

Browse files
authored
Revert back to one release, with 2 binaries (#383)
1 parent dc4a4e4 commit 6deffc0

File tree

1 file changed

+10
-19
lines changed

1 file changed

+10
-19
lines changed

.github/workflows/docker.yaml

Lines changed: 10 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,9 @@ env:
1515
DOCKER_USER: ${{ secrets.DOCKER_IO_USER }}
1616
IS_RELEASE: ${{
1717
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-' ) }}
2421

2522

2623
jobs:
@@ -59,31 +56,25 @@ jobs:
5956
}
6057
echo "${{ secrets.DOCKER_IO_PASS }}" | publish
6158
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'
6461
run : |
6562
docker create -ti --name container "${DOCKER_IMAGE}" bash
63+
docker cp container:/home/pyth/pyth-client/target/pyth/pythnet/pyth_oracle_pythnet.so .
6664
docker cp container:/home/pyth/pyth-client/target/pyth/solana/pyth_oracle_solana.so .
6765
docker rm -f container
6866
69-
- name : Publish Mainnet binary
70-
if : env.IS_MAINNET_RELEASE == 'true'
67+
- name : Publish Solana binary
68+
if : env.IS_ORACLE_RELEASE == 'true'
7169
uses: svenstaro/upload-release-action@133984371c30d34e38222a64855679a414cb7575
7270
with:
7371
repo_token: ${{ secrets.GITHUB_TOKEN }}
7472
file: ./pyth_oracle_solana.so
7573
asset_name: pyth_oracle_solana.so
7674
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+
8576
- name : Publish Pythnet binary
86-
if : env.IS_PYTHNET_RELEASE == 'true'
77+
if : env.IS_ORACLE_RELEASE == 'true'
8778
uses: svenstaro/upload-release-action@133984371c30d34e38222a64855679a414cb7575
8879
with:
8980
repo_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)