-
-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (36 loc) · 1.28 KB
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Publish
on:
push:
branches:
- master
jobs:
publish:
runs-on: ubuntu-latest
container: debian:stable-slim
steps:
- uses: actions/checkout@v2
- run: |
apt-get update
apt-get install -y ca-certificates openssl uuid-dev make rsync ssh
- uses: Bogdanp/[email protected]
with:
architecture: 'x64' # (x64 or x86), ignored on Linux
distribution: 'full' # or 'minimal'
variant: 'CS' # or 'CS' for Racket-on-Chez
version: '8.1' # or 'current' for the latest snapshot
- run: raco pkg install --auto --no-docs darwin rosette
- run: make site
- run: ./rememberme.sh
- name: Save ssh keys
env:
PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
PUBLIC_KEY: ${{ secrets.SSH_PUBLIC_KEY }}
run: |
mkdir /root/.ssh
echo "$PRIVATE_KEY" > /root/.ssh/id_rsa
echo "$PUBLIC_KEY" > /root/.ssh/id_rsa.pub
chmod 600 /root/.ssh/id_rsa
chmod 644 /root/.ssh/id_rsa.pub
sha1sum /root/.ssh/*
- run: ssh -o BatchMode=yes -o StrictHostKeyChecking=no [email protected] echo "Hello RN!"
- run: rsync -avz --delete public/ [email protected]:/var/www/racket-news.com/