We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 917d1b9 commit cf435f7Copy full SHA for cf435f7
.github/workflows/deploy.yml
@@ -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