File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Build and Deploy to trinity
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+
8
+ concurrency :
9
+ group : ${{ github.workflow }}-${{ github.ref }}
10
+ cancel-in-progress : true
11
+
12
+ jobs :
13
+ build-and-deploy :
14
+ runs-on : ubuntu-latest
15
+
16
+ steps :
17
+ - name : Checkout source
18
+ uses : actions/checkout@v4
19
+
20
+ - name : Setup Ruby
21
+ uses : ruby/setup-ruby@v1
22
+ with :
23
+ ruby-version : ' 3.1'
24
+
25
+ - name : Install dependencies
26
+ run : bundle install
27
+
28
+ - name : Build site
29
+ run : bundle exec jekyll build
30
+
31
+ - name : Set up SSH
32
+ uses :
webfactory/[email protected]
33
+ with :
34
+ ssh-private-key : ${{ secrets.DEPLOY_SSH_KEY }}
35
+
36
+ - name : Deploy to server via rsync
37
+ run : |
38
+ rsync -avz --delete _site/ [email protected] :/var/www/hacklab.fi/
39
+
You can’t perform that action at this time.
0 commit comments