Skip to content

Commit 98bd880

Browse files
🤖 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/67ba7d5e9b38c8944d42909a3a30b0710559b446/src/transforms/github:workflow-configure-gh-pages.js Please contact the author of the transform if you believe there was an error.
1 parent ee453e2 commit 98bd880

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

.github/workflows/gh-pages.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Build and Deploy GitHub pages
2+
on:
3+
release:
4+
types:
5+
- created
6+
jobs:
7+
build-and-deploy:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout 🛎️
11+
uses: actions/checkout@v2.3.4
12+
13+
- name: Install 🔧
14+
run: npm install
15+
16+
- name: Build 🏗️
17+
run: npm run build-gh-pages
18+
19+
- name: Deploy 🚀
20+
uses: JamesIves/github-pages-deploy-action@4.1.0
21+
with:
22+
branch: gh-pages
23+
folder: gh-pages

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
"scripts": {
5959
"build": "babel --delete-dir-on-start --env-name production src -d lib",
6060
"build-docs": "esdoc",
61+
"build-gh-pages": "npm run build-docs",
6162
"cover": "c8 --all --src src --reporter=lcov npm test",
6263
"dev": "npm run lint -- --fix && npm run cover -- -- -st --fail-fast",
6364
"lint": "true",

0 commit comments

Comments
 (0)