From cc1bf4ad883798132343e1106ebe4f534cd734b6 Mon Sep 17 00:00:00 2001 From: JItin Date: Fri, 9 Sep 2022 23:33:55 +0530 Subject: [PATCH] added workflow for pages Uses Jekyll 4 to build and deploy --- .github/workflows/pages.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/pages.yml diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml new file mode 100644 index 00000000..ccdb875f --- /dev/null +++ b/.github/workflows/pages.yml @@ -0,0 +1,26 @@ +name: Jekyll Deploy + +on: + push: + branches: + - master + +jobs: + build_and_deploy: + runs-on: ubuntu-latest + steps: + - name: GitHub Checkout + uses: actions/checkout@v1 + - name: Bundler Cache + uses: actions/cache@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 }}