Skip to content

Commit 2fe95d1

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/make-github-pseudonymous-again/rejuvenate/blob/9b50c2a1d7e9ab7b4bc9c9ff88892e98c5f62244/src/transforms/github:workflow-configure-gh-pages.js Please contact the author of the transform if you believe there was an error.
1 parent 94be56a commit 2fe95d1

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@v3
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/[email protected]
21+
with:
22+
branch: gh-pages
23+
folder: gh-pages

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
"scripts": {
3434
"build": "rm -rf lib && babel src -d lib",
3535
"build-docs": "esdoc",
36+
"build-gh-pages": "npm run build-docs",
3637
"cover": "c8 --all --src src --reporter=lcov npm test",
3738
"lint-config": "fixpack --dryRun",
3839
"lint-config-and-fix": "fixpack || fixpack",

0 commit comments

Comments
 (0)