From 21178774a466cc7fd6a9fadad6fdf608f4d84b87 Mon Sep 17 00:00:00 2001 From: JSKitty Date: Mon, 25 Sep 2023 16:58:44 +0100 Subject: [PATCH] Github preview deploy --- .github/workflows/deploy.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 000000000..c3735789c --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,25 @@ +# .github/workflows/preview.yml +name: Deploy PR previews +concurrency: preview-${{ github.ref }} +on: + pull_request: + types: + - opened + - reopened + - synchronize + - closed +jobs: + deploy-preview: + runs-on: ubuntu-latest + permissions: + contents: write + + steps: + - uses: actions/checkout@v3 + - run: npm ci && npm run build + - uses: rossjrw/pr-preview-action@v1 + with: + source-dir: dist/ + preview-branch: gh-pages + umbrella-dir: pr-preview + action: auto