From ef28ba1866e34f482215a807f8e139a2a9fa3bf6 Mon Sep 17 00:00:00 2001 From: Dolan Miu Date: Thu, 30 Sep 2021 03:14:15 +0100 Subject: [PATCH] Add GitHub Pages pipeline --- .github/workflows/github-pages.yml | 43 ++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/github-pages.yml diff --git a/.github/workflows/github-pages.yml b/.github/workflows/github-pages.yml new file mode 100644 index 0000000000..17a3ac583e --- /dev/null +++ b/.github/workflows/github-pages.yml @@ -0,0 +1,43 @@ +name: Github Pages +on: + push: + branches: + - master + +jobs: + build: + name: Build + runs-on: ubuntu-latest + steps: + - name: Checkout Repo + uses: actions/checkout@master + - name: Install Dependencies + run: npm ci + - name: Build 🔧 + run: | + npm run typedoc + echo "docx.js.org" > docs/.nojekyll + echo "docx.js.org" > docs/CNAME + - name: Archive Production Artifact + uses: actions/upload-artifact@master + with: + name: docs + path: docs + deploy: + needs: [build] + runs-on: ubuntu-latest + steps: + - name: Checkout Repo 🛎️ + uses: actions/checkout@master + - name: Install Dependencies + run: npm ci + - name: Download Artifact + uses: actions/download-artifact@master + with: + name: docs + path: docs + - name: Deploy 🚀 + uses: JamesIves/github-pages-deploy-action@4.1.5 + with: + branch: gh-pages + folder: docs