We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6908af6 commit 4b05573Copy full SHA for 4b05573
1 file changed
.github/workflows/deploy.yml
@@ -0,0 +1,39 @@
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/ssh-agent@v0.9.0
33
34
+ ssh-private-key: ${{ secrets.DEPLOY_SSH_KEY }}
35
36
+ - name: Deploy to server via rsync
37
+ run: |
38
+ rsync -avz --delete _site/ hackfi@trinity.hacklab.fi:/var/www/hacklab.fi/
39
0 commit comments