From bbfa7599d84d1f1092040d09d30a0ec3d3d92842 Mon Sep 17 00:00:00 2001 From: Matthias Mair Date: Thu, 4 Aug 2022 07:59:22 +0200 Subject: [PATCH] add preview --- .github/workflows/preview.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/preview.yml diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml new file mode 100644 index 00000000..9ed56d9b --- /dev/null +++ b/.github/workflows/preview.yml @@ -0,0 +1,33 @@ +name: Deploy PR previews +concurrency: preview-${{ github.ref }} +on: + pull_request: + types: + - opened + - reopened + - synchronize + - closed +jobs: + deploy-preview: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: ruby/setup-ruby@v1 + with: + ruby-version: 2.7 + bundler-cache: true + - name: Setup Node + uses: actions/setup-node@v2 + with: + node-version: '14' + - run: npm install + - name: Build site + uses: limjh16/jekyll-action-ts@v2 + with: + enable_cache: true + - uses: rossjrw/pr-preview-action@v1 + with: + source-dir: . + preview-branch: gh-pages + umbrella-dir: _site/pr-preview + action: auto