Skip to content

Commit bdf8f63

Browse files
committed
2 parents 9110c2b + 000cac2 commit bdf8f63

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/deploy.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,14 @@ jobs:
2121
uses: google-github-actions/setup-gcloud@v2
2222
with:
2323
project_id: ethereal-effort-397820
24-
24+
- name: Set up SSH keys
25+
run: |
26+
mkdir -p ~/.ssh
27+
echo "${{ secrets.GCP_SSH_PRIVATE_KEY }}" > ~/.ssh/google_compute_engine
28+
echo "${{ secrets.GCP_SSH_PUBLIC_KEY }}" > ~/.ssh/google_compute_engine.pub
29+
chmod 600 ~/.ssh/google_compute_engine
30+
chmod 644 ~/.ssh/google_compute_engine.pub
31+
2532
- name: Deploy to VM
2633
run: |
2734
gcloud compute ssh tjctgrader@autograder2 \

0 commit comments

Comments
 (0)