-
Notifications
You must be signed in to change notification settings - Fork 32
37 lines (35 loc) · 1.04 KB
/
deploy.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
name: Publish website to the ddurieux server
on:
push:
branches:
- master
jobs:
build:
name: Deploy website
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile') }}
restore-keys: |
${{ runner.os }}-gems-
- name: install bundle
run: sudo gem install bundler
- name: install dep gem
run: sudo bundle install
- name: build
run: bundle exec jekyll build
- name: Deploy with rsync
uses: "Pendect/[email protected]"
env:
DEPLOY_KEY: ${{ secrets.SSH_DOCUMENTATION_KEY }}
with:
flags: '-avzr --delete'
options: ''
ssh_options: ''
src: '_site/'
dest: '${{ secrets.SSH_DOCUMENTATION_USER }}@${{ secrets.SSH_HOST }}:${{ secrets.WEBSITE_PATH }}'
- name: Display status from deploy
run: echo "${{ steps.deploy.outputs.status }}"