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/a5a57b70ac6fd6fb77fdab32e6b7be7519ce9564/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 17, 2021
1 parent 31c5aaa commit bfde9aa
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
@@ -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@v2.3.4

- name: Install 🔧
run: npm install

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

- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@4.1.0
with:
branch: gh-pages
folder: gh-pages
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -34,6 +34,7 @@
"scripts": {
"build": "rm -rf lib && babel src -d lib",
"build-docs": "esdoc",
"build-gh-pages": "npm run build-docs",
"cover": "c8 --all --src src --reporter=lcov npm test",
"lint-config": "fixpack --dryRun",
"lint-config-and-fix": "fixpack || fixpack",
Expand Down

0 comments on commit bfde9aa

Please sign in to comment.