Skip to content

Commit 0468fde

Browse files
committed
create github workflow, add homepage and deploy
1 parent 2e8edc1 commit 0468fde

File tree

4 files changed

+130
-5
lines changed

4 files changed

+130
-5
lines changed

.github/workflows/main.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Build and Deploy
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
11+
if: contains(github.event.head_commit.message, 'deploy')
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Build and Deploy React app to GitHub Pages
17+
run: |
18+
git config --global user.email "[email protected]"
19+
git config --global user.name "Chukwuemeka Ihedoro"
20+
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
21+
npm install
22+
npm run deploy
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
[![Build and Deploy](https://github.com/emekalites/insomnia-animation/actions/workflows/main.yml/badge.svg)](https://github.com/emekalites/insomnia-animation/actions/workflows/main.yml)
2+
13
# Getting Started with Create React App
24

35
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

package.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
{
2-
"name": "my-app",
2+
"name": "insomnia-animation",
33
"version": "0.1.0",
4+
"homepage": "https://emekalites.github.io/insomnia-animation",
45
"private": true,
56
"scripts": {
67
"start": "react-scripts start",
78
"build": "react-scripts build",
89
"test": "react-scripts test",
910
"eject": "react-scripts eject",
11+
"predeploy": "npm run build",
12+
"deploy": "gh-pages -d build",
1013
"prepare": "husky"
1114
},
1215
"dependencies": {
@@ -21,6 +24,7 @@
2124
},
2225
"devDependencies": {
2326
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
27+
"gh-pages": "^6.1.1",
2428
"husky": "^9.1.6",
2529
"lint-staged": "^15.2.10",
2630
"prettier": "^3.3.3"

yarn.lock

+99-4
Original file line numberDiff line numberDiff line change
@@ -2696,11 +2696,23 @@ array-includes@^3.1.6, array-includes@^3.1.8:
26962696
get-intrinsic "^1.2.4"
26972697
is-string "^1.0.7"
26982698

2699+
array-union@^1.0.1:
2700+
version "1.0.2"
2701+
resolved "https://registry.yarnpkg.com/array-union/-/array-union-1.0.2.tgz#9a34410e4f4e3da23dea375be5be70f24778ec39"
2702+
integrity sha512-Dxr6QJj/RdU/hCaBjOfxW+q6lyuVE6JFWIrAUpuOOhoJJoQ99cUn3igRaHVB5P9WrgFVN0FfArM3x0cueOU8ng==
2703+
dependencies:
2704+
array-uniq "^1.0.1"
2705+
26992706
array-union@^2.1.0:
27002707
version "2.1.0"
27012708
resolved "https://registry.yarnpkg.com/array-union/-/array-union-2.1.0.tgz#b798420adbeb1de828d84acd8a2e23d3efe85e8d"
27022709
integrity sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==
27032710

2711+
array-uniq@^1.0.1:
2712+
version "1.0.3"
2713+
resolved "https://registry.yarnpkg.com/array-uniq/-/array-uniq-1.0.3.tgz#af6ac877a25cc7f74e058894753858dfdb24fdb6"
2714+
integrity sha512-MNha4BWQ6JbwhFhj03YK552f7cb3AzoE8SzeljgChvL1dl3IcvggXVz1DilzySZkCja+CXuZbdW7yATchWn8/Q==
2715+
27042716
array.prototype.findlast@^1.2.5:
27052717
version "1.2.5"
27062718
resolved "https://registry.yarnpkg.com/array.prototype.findlast/-/array.prototype.findlast-1.2.5.tgz#3e4fbcb30a15a7f5bf64cf2faae22d139c2e4904"
@@ -2793,7 +2805,7 @@ ast-types-flow@^0.0.8:
27932805
resolved "https://registry.yarnpkg.com/ast-types-flow/-/ast-types-flow-0.0.8.tgz#0a85e1c92695769ac13a428bb653e7538bea27d6"
27942806
integrity sha512-OH/2E5Fg20h2aPrbe+QL8JZQFko0YZaF+j4mnQ7BGhfavO7OpSLa8a0y9sBwomHdSbkhTS8TQNayBfnW5DwbvQ==
27952807

2796-
async@^3.2.3:
2808+
async@^3.2.3, async@^3.2.4:
27972809
version "3.2.6"
27982810
resolved "https://registry.yarnpkg.com/async/-/async-3.2.6.tgz#1b0728e14929d51b85b449b7f06e27c1145e38ce"
27992811
integrity sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA==
@@ -3332,6 +3344,11 @@ combined-stream@^1.0.8:
33323344
dependencies:
33333345
delayed-stream "~1.0.0"
33343346

3347+
commander@^11.0.0:
3348+
version "11.1.0"
3349+
resolved "https://registry.yarnpkg.com/commander/-/commander-11.1.0.tgz#62fdce76006a68e5c1ab3314dc92e800eb83d906"
3350+
integrity sha512-yPVavfyCcRhmorC7rWlkHn15b4wDVgVmBA7kV4QVBsF7kv/9TKJAbAXVTxvTnwP8HHKjRCJDClKbciiYS7p0DQ==
3351+
33353352
commander@^2.20.0:
33363353
version "2.20.3"
33373354
resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33"
@@ -4024,6 +4041,11 @@ electron-to-chromium@^1.5.4:
40244041
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.27.tgz#5203ce5d6054857d84ba84d3681cbe59132ade78"
40254042
integrity sha512-o37j1vZqCoEgBuWWXLHQgTN/KDKe7zwpiY5CPeq2RvUqOyJw9xnrULzZAEVQ5p4h+zjMk7hgtOoPdnLxr7m/jw==
40264043

4044+
email-addresses@^5.0.0:
4045+
version "5.0.0"
4046+
resolved "https://registry.yarnpkg.com/email-addresses/-/email-addresses-5.0.0.tgz#7ae9e7f58eef7d5e3e2c2c2d3ea49b78dc854fa6"
4047+
integrity sha512-4OIPYlA6JXqtVn8zpHpGiI7vE6EQOAg16aGnDMIAlZVinnoZ8208tW1hAbjWydgN/4PLTT9q+O1K6AH/vALJGw==
4048+
40274049
emittery@^0.10.2:
40284050
version "0.10.2"
40294051
resolved "https://registry.yarnpkg.com/emittery/-/emittery-0.10.2.tgz#902eec8aedb8c41938c46e9385e9db7e03182933"
@@ -4247,7 +4269,7 @@ escape-html@~1.0.3:
42474269
resolved "https://registry.yarnpkg.com/escape-html/-/escape-html-1.0.3.tgz#0258eae4d3d0c0974de1c169188ef0051d1d1988"
42484270
integrity sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==
42494271

4250-
escape-string-regexp@^1.0.5:
4272+
escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.5:
42514273
version "1.0.5"
42524274
resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4"
42534275
integrity sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==
@@ -4739,6 +4761,20 @@ filelist@^1.0.4:
47394761
dependencies:
47404762
minimatch "^5.0.1"
47414763

4764+
filename-reserved-regex@^2.0.0:
4765+
version "2.0.0"
4766+
resolved "https://registry.yarnpkg.com/filename-reserved-regex/-/filename-reserved-regex-2.0.0.tgz#abf73dfab735d045440abfea2d91f389ebbfa229"
4767+
integrity sha512-lc1bnsSr4L4Bdif8Xb/qrtokGbq5zlsms/CYH8PP+WtCkGNF65DPiQY8vG3SakEdRn8Dlnm+gW/qWKKjS5sZzQ==
4768+
4769+
filenamify@^4.3.0:
4770+
version "4.3.0"
4771+
resolved "https://registry.yarnpkg.com/filenamify/-/filenamify-4.3.0.tgz#62391cb58f02b09971c9d4f9d63b3cf9aba03106"
4772+
integrity sha512-hcFKyUG57yWGAzu1CMt/dPzYZuv+jAJUT85bL8mrXvNe6hWj6yEHEc4EdcgiA6Z3oi1/9wXJdZPXF2dZNgwgOg==
4773+
dependencies:
4774+
filename-reserved-regex "^2.0.0"
4775+
strip-outer "^1.0.1"
4776+
trim-repeated "^1.0.0"
4777+
47424778
filesize@^8.0.6:
47434779
version "8.0.7"
47444780
resolved "https://registry.yarnpkg.com/filesize/-/filesize-8.0.7.tgz#695e70d80f4e47012c132d57a059e80c6b580bd8"
@@ -4882,6 +4918,15 @@ fs-extra@^10.0.0:
48824918
jsonfile "^6.0.1"
48834919
universalify "^2.0.0"
48844920

4921+
fs-extra@^11.1.1:
4922+
version "11.2.0"
4923+
resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-11.2.0.tgz#e70e17dfad64232287d01929399e0ea7c86b0e5b"
4924+
integrity sha512-PmDi3uwK5nFuXh7XDTlVnS17xJS7vW36is2+w3xcv8SVxiB4NyATf4ctkVY5bkSjX0Y4nbvZCq1/EjtEyr9ktw==
4925+
dependencies:
4926+
graceful-fs "^4.2.0"
4927+
jsonfile "^6.0.1"
4928+
universalify "^2.0.0"
4929+
48854930
fs-extra@^9.0.0, fs-extra@^9.0.1:
48864931
version "9.1.0"
48874932
resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-9.1.0.tgz#5954460c764a8da2094ba3554bf839e6b9a7c86d"
@@ -4982,6 +5027,19 @@ get-symbol-description@^1.0.2:
49825027
es-errors "^1.3.0"
49835028
get-intrinsic "^1.2.4"
49845029

5030+
gh-pages@^6.1.1:
5031+
version "6.1.1"
5032+
resolved "https://registry.yarnpkg.com/gh-pages/-/gh-pages-6.1.1.tgz#e80af927a081cb480657fde5a0b87ea2e77d6c74"
5033+
integrity sha512-upnohfjBwN5hBP9w2dPE7HO5JJTHzSGMV1JrLrHvNuqmjoYHg6TBrCcnEoorjG/e0ejbuvnwyKMdTyM40PEByw==
5034+
dependencies:
5035+
async "^3.2.4"
5036+
commander "^11.0.0"
5037+
email-addresses "^5.0.0"
5038+
filenamify "^4.3.0"
5039+
find-cache-dir "^3.3.1"
5040+
fs-extra "^11.1.1"
5041+
globby "^6.1.0"
5042+
49855043
glob-parent@^5.1.2, glob-parent@~5.1.2:
49865044
version "5.1.2"
49875045
resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.2.tgz#869832c58034fe68a4093c17dc15e8340d8401c4"
@@ -5013,7 +5071,7 @@ glob@^10.3.10:
50135071
package-json-from-dist "^1.0.0"
50145072
path-scurry "^1.11.1"
50155073

5016-
glob@^7.1.1, glob@^7.1.2, glob@^7.1.3, glob@^7.1.4, glob@^7.1.6:
5074+
glob@^7.0.3, glob@^7.1.1, glob@^7.1.2, glob@^7.1.3, glob@^7.1.4, glob@^7.1.6:
50175075
version "7.2.3"
50185076
resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.3.tgz#b8df0fb802bbfa8e89bd1d938b4e16578ed44f2b"
50195077
integrity sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==
@@ -5073,6 +5131,17 @@ globby@^11.0.4, globby@^11.1.0:
50735131
merge2 "^1.4.1"
50745132
slash "^3.0.0"
50755133

5134+
globby@^6.1.0:
5135+
version "6.1.0"
5136+
resolved "https://registry.yarnpkg.com/globby/-/globby-6.1.0.tgz#f5a6d70e8395e21c858fb0489d64df02424d506c"
5137+
integrity sha512-KVbFv2TQtbzCoxAnfD6JcHZTYCzyliEaaeM/gH8qQdkKr5s0OP9scEgvdcngyk7AVdY6YVW/TJHd+lQ/Df3Daw==
5138+
dependencies:
5139+
array-union "^1.0.1"
5140+
glob "^7.0.3"
5141+
object-assign "^4.0.1"
5142+
pify "^2.0.0"
5143+
pinkie-promise "^2.0.0"
5144+
50765145
gopd@^1.0.1:
50775146
version "1.0.1"
50785147
resolved "https://registry.yarnpkg.com/gopd/-/gopd-1.0.1.tgz#29ff76de69dac7489b7c0918a5788e56477c332c"
@@ -7302,11 +7371,23 @@ pidtree@~0.6.0:
73027371
resolved "https://registry.yarnpkg.com/pidtree/-/pidtree-0.6.0.tgz#90ad7b6d42d5841e69e0a2419ef38f8883aa057c"
73037372
integrity sha512-eG2dWTVw5bzqGRztnHExczNxt5VGsE6OwTeCG3fdUf9KBsZzO3R5OIIIzWR+iZA0NtZ+RDVdaoE2dK1cn6jH4g==
73047373

7305-
pify@^2.3.0:
7374+
pify@^2.0.0, pify@^2.3.0:
73067375
version "2.3.0"
73077376
resolved "https://registry.yarnpkg.com/pify/-/pify-2.3.0.tgz#ed141a6ac043a849ea588498e7dca8b15330e90c"
73087377
integrity sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==
73097378

7379+
pinkie-promise@^2.0.0:
7380+
version "2.0.1"
7381+
resolved "https://registry.yarnpkg.com/pinkie-promise/-/pinkie-promise-2.0.1.tgz#2135d6dfa7a358c069ac9b178776288228450ffa"
7382+
integrity sha512-0Gni6D4UcLTbv9c57DfxDGdr41XfgUjqWZu492f0cIGr16zDU06BWP/RAEvOuo7CQ0CNjHaLlM59YJJFm3NWlw==
7383+
dependencies:
7384+
pinkie "^2.0.0"
7385+
7386+
pinkie@^2.0.0:
7387+
version "2.0.4"
7388+
resolved "https://registry.yarnpkg.com/pinkie/-/pinkie-2.0.4.tgz#72556b80cfa0d48a974e80e77248e80ed4f7f870"
7389+
integrity sha512-MnUuEycAemtSaeFSjXKW/aroV7akBbY+Sv+RkyqFjgAe73F+MR0TBWKBRDkmfWq/HiFmdavfZ1G7h4SPZXaCSg==
7390+
73107391
pirates@^4.0.1, pirates@^4.0.4:
73117392
version "4.0.6"
73127393
resolved "https://registry.yarnpkg.com/pirates/-/pirates-4.0.6.tgz#3018ae32ecfcff6c29ba2267cbf21166ac1f36b9"
@@ -9051,6 +9132,13 @@ strip-json-comments@^3.1.1:
90519132
resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz#31f1281b3832630434831c310c01cccda8cbe006"
90529133
integrity sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==
90539134

9135+
strip-outer@^1.0.1:
9136+
version "1.0.1"
9137+
resolved "https://registry.yarnpkg.com/strip-outer/-/strip-outer-1.0.1.tgz#b2fd2abf6604b9d1e6013057195df836b8a9d631"
9138+
integrity sha512-k55yxKHwaXnpYGsOzg4Vl8+tDrWylxDEpknGjhTiZB8dFRU5rTo9CAzeycivxV3s+zlTKwrs6WxMxR95n26kwg==
9139+
dependencies:
9140+
escape-string-regexp "^1.0.2"
9141+
90549142
style-loader@^3.3.1:
90559143
version "3.3.4"
90569144
resolved "https://registry.yarnpkg.com/style-loader/-/style-loader-3.3.4.tgz#f30f786c36db03a45cbd55b6a70d930c479090e7"
@@ -9319,6 +9407,13 @@ tr46@^2.1.0:
93199407
dependencies:
93209408
punycode "^2.1.1"
93219409

9410+
trim-repeated@^1.0.0:
9411+
version "1.0.0"
9412+
resolved "https://registry.yarnpkg.com/trim-repeated/-/trim-repeated-1.0.0.tgz#e3646a2ea4e891312bf7eace6cfb05380bc01c21"
9413+
integrity sha512-pkonvlKk8/ZuR0D5tLW8ljt5I8kmxp2XKymhepUeOdCEfKpZaktSArkLHZt76OB1ZvO9bssUsDty4SWhLvZpLg==
9414+
dependencies:
9415+
escape-string-regexp "^1.0.2"
9416+
93229417
tryer@^1.0.1:
93239418
version "1.0.1"
93249419
resolved "https://registry.yarnpkg.com/tryer/-/tryer-1.0.1.tgz#f2c85406800b9b0f74c9f7465b81eaad241252f8"

0 commit comments

Comments
 (0)