From d89f76ff4670af5630a8edecea9aa50efb18369f Mon Sep 17 00:00:00 2001 From: Ske Date: Mon, 22 Jun 2020 14:20:56 +0200 Subject: [PATCH] Add GitHub Action to build and deploy website --- .github/workflows/ghpages.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/ghpages.yml diff --git a/.github/workflows/ghpages.yml b/.github/workflows/ghpages.yml new file mode 100644 index 00000000..eb380b12 --- /dev/null +++ b/.github/workflows/ghpages.yml @@ -0,0 +1,21 @@ +name: Build and deploy site to GitHub Pages +on: + push: + branches: + - main +jobs: + github-pages: + runs-on: ubuntu-16.04 + steps: + - uses: actions/checkout@v2 + - uses: actions/cache@v1 + with: + path: vendor/bundle + key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} + restore-keys: | + ${{ runner.os }}-gems- + - uses: helaili/jekyll-action@2.0.1 + env: + JEKYLL_PAT: ${{ secrets.JEKYLL_PAT }} + with: + jekyll_src: 'docs' \ No newline at end of file