This repository has been archived by the owner on Oct 1, 2024. It is now read-only.
Merge pull request #84 from tere92/master #48
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
# Continuous integration of jekyll site | |
name: Build website | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
Build-website: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '3.0' | |
bundler-cache: true # run 'bundle install' and caches installed gems automatically | |
- name: Install jekyll | |
run: gem install jekyll | |
- name: Build website | |
run: | | |
JEKYLL_ENV=production bundle exec jekyll build | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_branch: gh-pages | |
publish_dir: ./_site |