From 76b628aa4b7e6e094c0a183aa04f52f00ebd3aa7 Mon Sep 17 00:00:00 2001 From: SirRandoo <8146689+SirRandoo@users.noreply.github.com> Date: Mon, 19 Jun 2023 20:07:54 -0500 Subject: [PATCH] Create jekyll.yml --- .github/workflows/jekyll.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/jekyll.yml diff --git a/.github/workflows/jekyll.yml b/.github/workflows/jekyll.yml new file mode 100644 index 000000000..c9b0afb10 --- /dev/null +++ b/.github/workflows/jekyll.yml @@ -0,0 +1,27 @@ +name: Build and Deploy to Github Pages + +on: + push: + branches: + - main # Here source code branch is `master`, it could be other branch + +jobs: + build_and_deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + # Use GitHub Actions' cache to cache dependencies on servers + - uses: actions/cache@v3 + with: + path: vendor/bundle + key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} + restore-keys: | + ${{ runner.os }}-gems- + + # Use GitHub Deploy Action to build and deploy to Github + - uses: jeffreytse/jekyll-deploy-action@v0.4.0 + with: + provider: 'github' + token: ${{ secrets.GITHUB_TOKEN }} # It's your Personal Access Token(PAT) + jekyll_baseurl: '/itemlist' # Default is according to _config.yml