Skip to content

Commit d688070

Browse files
authored
Switch to oracle releases (#340)
* Update README * Update workflow
1 parent 7f66c3a commit d688070

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

.github/workflows/docker.yaml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,9 @@ env:
1212
DOCKER_USER: ${{ secrets.DOCKER_IO_USER }}
1313
IS_RELEASE: ${{
1414
startsWith( github.ref, 'refs/tags/pythd-' ) ||
15-
startsWith( github.ref, 'refs/tags/devnet-' ) ||
16-
startsWith( github.ref, 'refs/tags/testnet-' ) ||
17-
startsWith( github.ref, 'refs/tags/mainnet-' ) }}
18-
IS_DEVNET_RELEASE: ${{
19-
startsWith( github.ref, 'refs/tags/devnet-' ) }}
15+
startsWith( github.ref, 'refs/tags/oracle-' ) ||
16+
IS_ORACLE_RELEASE: ${{
17+
startsWith( github.ref, 'refs/tags/oracle-' ) }}
2018

2119

2220
jobs:
@@ -56,14 +54,14 @@ jobs:
5654
echo "${{ secrets.DOCKER_IO_PASS }}" | publish
5755
5856
- name : Get binary from docker
59-
if : env.IS_DEVNET_RELEASE == 'true'
57+
if : env.IS_ORACLE_RELEASE == 'true'
6058
run : |
6159
docker create -ti --name container "${DOCKER_IMAGE}" bash
6260
docker cp container:/home/pyth/pyth-client/target/deploy/pyth_oracle.so .
6361
docker rm -f container
6462
6563
- name : Publish binary
66-
if : env.IS_DEVNET_RELEASE == 'true'
64+
if : env.IS_ORACLE_RELEASE == 'true'
6765
uses: svenstaro/upload-release-action@133984371c30d34e38222a64855679a414cb7575
6866
with:
6967
repo_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)