File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change 10
10
11
11
jobs :
12
12
build :
13
- name : Build and Deploy
13
+ name : Deploy Website
14
14
runs-on : ubuntu-latest
15
15
steps :
16
16
- name : 🛒 Checkout
17
17
uses : actions/checkout@v3
18
-
19
18
- name : ✨ Setup Hugo
20
19
env :
21
20
HUGO_VERSION : 0.92.2
@@ -25,14 +24,11 @@ jobs:
25
24
curl -L "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_Linux-64bit.tar.gz" --output hugo.tar.gz
26
25
tar -xvzf hugo.tar.gz
27
26
sudo mv hugo /usr/local/bin
28
-
29
27
- name : 🛠️ Build
30
28
run : hugo --source website --minify
31
-
29
+ - name : 🔐 Create Key File
30
+ run : install -m 600 -D /dev/null ~/.ssh/id_rsa
32
31
- name : 🔑 Install SSH Key
33
- run : |
34
- install -m 600 -D /dev/null ~/.ssh/id_rsa
35
- echo "${{ secrets.PRIVATE_SSH_KEY }}" > ~/.ssh/id_rsa
36
-
32
+ run : echo "${{ secrets.PRIVATE_SSH_KEY }}" > ~/.ssh/id_rsa
37
33
- name : 🚀 Deploy
38
- run : rsync --archive --delete --stats -o StrictHostKeyChecking=no - e 'ssh -p 18765' website/public/ ${{ secrets.REMOTE_DEST }}
34
+ run : rsync --archive --delete --stats -e 'ssh -p 18765 -o StrictHostKeyChecking=no ' website/public/ ${{ secrets.REMOTE_DEST }}
You can’t perform that action at this time.
0 commit comments