diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml new file mode 100644 index 0000000..f42ebc3 --- /dev/null +++ b/.github/workflows/pages.yml @@ -0,0 +1,30 @@ +name: Deploy GitHub Pages + +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-22.04 + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Setup Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: 3.2 # Ruby version compatible with Jekyll + bundler-cache: true + + - name: Install dependencies and build + run: | + bundle install + bundle exec jekyll build + + - name: Deploy to GitHub Pages + uses: peaceiris/actions-gh-pages@v4 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./_site diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..a33cbfd --- /dev/null +++ b/Gemfile @@ -0,0 +1,5 @@ +source "https://rubygems.org" +gem "jekyll", "~> 4.3" +gem "jekyll-remote-theme" +gem "jekyll-sitemap" +gem "jekyll-compress-html" \ No newline at end of file