try to build jekyll #152
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
- 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 }} |