Skip to content

Commit

Permalink
Update update-pythnet-node.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
xraymemory authored Feb 17, 2023
1 parent 59c0cf0 commit 3ccf07d
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/update-pythnet-node.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Update Pythnet Node

on:
push:
branches:
- pyth
workflow_dispatch:
inputs:
node:
Expand Down Expand Up @@ -40,11 +43,5 @@ jobs:
run: aws ec2-instance-connect send-ssh-public-key --instance-id $AWS_ID --availability-zone eu-west-2a --instance-os-user ubuntu --ssh-public-key file://temp_key.pub
- name: Upload build to node
run: scp -o "StrictHostKeyChecking no" -i temp_key pythnet.zip ubuntu@$AWS_IP:/home/ubuntu
- name: Move build
run: ssh -o "IdentitiesOnly=yes" -i temp_key ubuntu@$AWS_IP sudo cp /home/ubuntu/pythnet.zip /opt/solana
- name: Unzip
run: ssh -o "IdentitiesOnly=yes" -i temp_key ubuntu@$AWS_IP sudo unzip /opt/solana/pythnet.zip -d /opt/solana/pythnet
- name: Set perms
run: ssh -o "IdentitiesOnly=yes" -i temp_key ubuntu@$AWS_IP sudo chown -hR solana /opt/solana/pythnet
- name: Compile new release build and set it as active binary
run: ssh -o "IdentitiesOnly=yes" -i temp_key ubuntu@$AWS_IP su solana -c "/opt/solana/build.sh"

0 comments on commit 3ccf07d

Please sign in to comment.