Skip to content

Commit cf435f7

Browse files
committed
Resurrect automatic deployment using SSH
1 parent 917d1b9 commit cf435f7

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: deploy
2+
on:
3+
push:
4+
branches:
5+
- master
6+
jobs:
7+
deploy:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v5
11+
- name: Set up SSH
12+
env:
13+
RUBY_GIT_SYNC_PRIVATE_KEY: ${{ secrets.RUBY_GIT_SYNC_PRIVATE_KEY }}
14+
run: |
15+
mkdir -p ~/.ssh
16+
echo "$RUBY_GIT_SYNC_PRIVATE_KEY" > ~/.ssh/id_ed25519
17+
chmod 600 ~/.ssh/id_ed25519
18+
ssh-keyscan -t ed25519 git.ruby-lang.org >> ~/.ssh/known_hosts
19+
20+
- name: Sync /home/git/git.ruby-lang.org
21+
run: ssh -i ~/.ssh/id_ed25519 [email protected] 'sudo -u git /home/git/git.ruby-lang.org/bin/update-git-ruby-lang-org.sh'

0 commit comments

Comments
 (0)