Skip to content

Commit

Permalink
🤖 config(github): Configure workflow to automate gh-pages generation.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
a-flying-potato authored and make-github-pseudonymous-again committed Mar 25, 2021
1 parent a496a64 commit 4b16601
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Build and Deploy GitHub pages
on:
release:
types:
- created
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/[email protected]

- name: Install 🔧
run: npm install

- name: Build 🏗️
run: npm run build-gh-pages

- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: gh-pages
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"scripts": {
"build": "babel --delete-dir-on-start --env-name production src -d lib",
"build-docs": "esdoc",
"build-gh-pages": "npm run build-docs",
"cover": "c8 --all --src src --reporter=lcov npm test",
"dev": "npm run lint -- --fix && npm run cover -- -- -st --fail-fast",
"lint": "true",
Expand Down

0 comments on commit 4b16601

Please sign in to comment.