Skip to content

try to build jekyll #152

try to build jekyll

try to build jekyll #152

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
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true # runs 'bundle install' and caches installed gems automatically

Check failure on line 18 in .github/workflows/build-and-deploy.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build-and-deploy.yml

Invalid workflow file

You have an error in your yaml syntax on line 18
- name: Build with Jekyll
# Outputs to the './_site' directory by default
run: bundle exec jekyll build
- 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 }}