Skip to content

Commit 4b05573

Browse files
committed
first deploy test
1 parent 6908af6 commit 4b05573

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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/[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+

0 commit comments

Comments
 (0)