From 4b16601f3c085d0c4a623ad96aa53a0f3d0d0ec7 Mon Sep 17 00:00:00 2001 From: a flying potato <80830782+a-flying-potato@users.noreply.github.com> Date: Thu, 25 Mar 2021 15:00:07 +0100 Subject: [PATCH] :robot: config(github): Configure workflow to automate gh-pages generation. These changes were automatically generated by a transform whose code can be found at: - https://github.com/aureooms/rejuvenate/blob/e086830dfe927964be93f46b8ecdacd2597eb487/src/transforms/github:workflow-configure-gh-pages.js Please contact the author of the transform if you believe there was an error. --- .github/workflows/gh-pages.yml | 23 +++++++++++++++++++++++ package.json | 1 + 2 files changed, 24 insertions(+) create mode 100644 .github/workflows/gh-pages.yml diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml new file mode 100644 index 0000000..a111ed9 --- /dev/null +++ b/.github/workflows/gh-pages.yml @@ -0,0 +1,23 @@ +name: Build and Deploy GitHub pages +on: + release: + types: + - created +jobs: + build-and-deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout 🛎️ + uses: actions/checkout@v2.3.4 + + - name: Install 🔧 + run: npm install + + - name: Build 🏗️ + run: npm run build-gh-pages + + - name: Deploy 🚀 + uses: JamesIves/github-pages-deploy-action@4.1.0 + with: + branch: gh-pages + folder: gh-pages diff --git a/package.json b/package.json index f8b25d9..1ae1d5d 100644 --- a/package.json +++ b/package.json @@ -28,6 +28,7 @@ "scripts": { "build": "babel --delete-dir-on-start --env-name production src -d lib", "build-docs": "esdoc", + "build-gh-pages": "npm run build-docs", "cover": "c8 --all --src src --reporter=lcov npm test", "dev": "npm run lint -- --fix && npm run cover -- -- -st --fail-fast", "lint": "true",