Skip to content

Commit eed7a25

Browse files
a-flying-potatomake-github-pseudonymous-again
authored andcommittedMar 25, 2021
🤖 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.
1 parent c378b0d commit eed7a25

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed
 

‎.github/workflows/gh-pages.yml

+23
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

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"scripts": {
2727
"build": "rm -rf lib && babel src -d lib",
2828
"build-docs": "esdoc",
29+
"build-gh-pages": "npm run build-docs",
2930
"cover": "c8 --all --src src --reporter=lcov npm test",
3031
"lint-config": "fixpack --dryRun",
3132
"lint-config-and-fix": "fixpack || fixpack",

0 commit comments

Comments
 (0)
Please sign in to comment.