From 30fc794741bdb26efcdf9f6364200b995b45f140 Mon Sep 17 00:00:00 2001 From: Renan Taranto Date: Tue, 26 Dec 2023 22:11:17 -0300 Subject: [PATCH] [Deploy] Fix Github Actions deployment error --- .github/workflows/main.yml | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ccdb875..09a050b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,4 +1,4 @@ -name: Jekyll Deploy +name: Build and Deploy a Jekyll Site to GitHub Pages on: push: @@ -6,21 +6,21 @@ on: - master jobs: - build_and_deploy: - runs-on: ubuntu-latest + jekyll: + runs-on: macos-latest steps: - - name: GitHub Checkout - uses: actions/checkout@v1 - - name: Bundler Cache - uses: actions/cache@v1 + - name: 📂 setup + uses: actions/checkout@v2 + - name: 💎 setup ruby + uses: ruby/setup-ruby@v1 with: - path: vendor/bundle - key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} - restore-keys: | - ${{ runner.os }}-gems- - - name: Build & Deploy to GitHub Pages - uses: joshlarsen/jekyll4-deploy-gh-pages@master - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - GITHUB_REPOSITORY: ${{ secrets.GITHUB_REPOSITORY }} - GITHUB_ACTOR: ${{ secrets.GITHUB_ACTOR }} + ruby-version: 2.7 + - name: 🔨 install dependencies & build site + uses: limjh16/jekyll-action-ts@v2 + with: + enable_cache: true + - name: 🚀 deploy + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./_site