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/make-github-pseudonymous-again/rejuvenate/blob/7a92df9c28303ed9cd6ee1a5e4999acfc8c52497/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 Oct 12, 2022
1 parent 9983bc7 commit fc0247d
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/checkout@v3

- name: Install 🔧
run: npm install

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

- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@4.1.1
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 @@ -27,6 +27,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 fc0247d

Please sign in to comment.