Skip to content

chore(deps): update dependency ruby to v3.3.6 - autoclosed #119

chore(deps): update dependency ruby to v3.3.6 - autoclosed

chore(deps): update dependency ruby to v3.3.6 - autoclosed #119

name: Build Jekyll site and deploy
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- 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/scp-deploy@v1.3.0
with:
src: ./_site/*
host: ${{ secrets.SSH_HOST }}
remote: ${{ secrets.SSH_DIR }}
port: ${{ secrets.SSH_PORT }}
user: ${{ secrets.SSH_USER }}
key: ${{ secrets.SSH_KEY }}