Skip to content

Commit

Permalink
Add GitHub Pages pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
dolanmiu committed Sep 30, 2021
1 parent 6ede700 commit ef28ba1
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/github-pages.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit ef28ba1

Please sign in to comment.