diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml index 78696635c..7516b3750 100644 --- a/.github/workflows/docker.yaml +++ b/.github/workflows/docker.yaml @@ -15,6 +15,9 @@ env: startsWith( github.ref, 'refs/tags/devnet-' ) || startsWith( github.ref, 'refs/tags/testnet-' ) || startsWith( github.ref, 'refs/tags/mainnet-' ) }} + IS_DEVNET_RELEASE: ${{ + startsWith( github.ref, 'refs/tags/devnet-' ) }} + jobs: build: @@ -51,6 +54,23 @@ jobs: docker image push "${PUB_IMAGE}" } echo "${{ secrets.DOCKER_IO_PASS }}" | publish + + - name : Get binary from docker + if : env.IS_DEVNET_RELEASE == 'true' + run : | + docker create -ti --name container "${DOCKER_IMAGE}" bash + docker cp container:/home/pyth/pyth-client/target/deploy/pyth_oracle.so . + docker rm -f container + + - name : Publish binary + if : env.IS_DEVNET_RELEASE == 'true' + uses: svenstaro/upload-release-action@133984371c30d34e38222a64855679a414cb7575 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: ./pyth_oracle.so + asset_name: pyth_oracle.so + tag: ${{ github.ref }} + pinning: runs-on: ubuntu-latest steps: