-
Notifications
You must be signed in to change notification settings - Fork 4
42 lines (34 loc) · 1021 Bytes
/
publish.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
38
39
40
41
42
name: Deploy site
on:
push:
branches: [ main ]
workflow_dispatch:
jobs:
doc-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2'
- name: Install dependencies
run: bundle install
- name: Run Jekyll
# Build the site using Jekyll
run: JEKYLL_ENV=production bundle exec jekyll build
# Copy (or touch) other needed files
# .nojekyll: to tell GH Pages to not rebuild (lol)
- name: Post-Jekyll build copy files
run: |
touch _site/.nojekyll
- name: Deploy
uses: burnett01/rsync-deployments@6.0.0
with:
switches: -avzr --delete
path: _site/
remote_path: ${{ secrets.DEPLOY_PATH }}
remote_host: ${{ secrets.DEPLOY_HOST }}
remote_user: ${{ secrets.DEPLOY_USER }}
remote_key: ${{ secrets.DEPLOY_KEY }}