Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
andibraeu committed Dec 18, 2023
1 parent 407ccf2 commit e1079f8
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 26 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build Jekyll site and deploy

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Build the site in the jekyll/builder container
run: |
docker run \
-v ${{ github.workspace }}:/srv/jekyll -v ${{ github.workspace }}/_site:/srv/jekyll/_site \
jekyll/builder:latest /bin/bash -c "chmod -R 777 /srv/jekyll && jekyll build --future"
- name: Publish
if: github.event_name == 'push'
uses: nogsantos/[email protected]
with:
src: ./_site/*
host: ${{ secrets.SSH_HOST }}
remote: ${{ secrets.SSH_DIR }}
port: ${{ secrets.SSH_PORT }}
user: ${{ secrets.SSH_USER }}
key: ${{ secrets.SSH_KEY }}
25 changes: 0 additions & 25 deletions .github/workflows/jekyll-docker.yml

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ _site/
.sass-cache/
.jekyll-cache/
.jekyll-metadata
vendor
# GitBook rules
# Node rules:
## Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
Expand Down
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ ruby "3.1.1"
gem "jekyll", ">= 4.2.0"
gem "html-proofer", ">= 3.10.0"
gem "kramdown-parser-gfm", ">= 1.1.0"

gem "webrick", "~> 1.8"
4 changes: 3 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ GEM
typhoeus (1.4.0)
ethon (>= 0.9.0)
unicode-display_width (1.8.0)
webrick (1.8.1)
yell (2.2.2)

PLATFORMS
Expand All @@ -91,9 +92,10 @@ DEPENDENCIES
html-proofer (>= 3.10.0)
jekyll (>= 4.2.0)
kramdown-parser-gfm (>= 1.1.0)
webrick (~> 1.8)

RUBY VERSION
ruby 2.7.5p203
ruby 3.1.1p18

BUNDLED WITH
2.4.21

0 comments on commit e1079f8

Please sign in to comment.