File tree Expand file tree Collapse file tree 3 files changed +398
-0
lines changed Expand file tree Collapse file tree 3 files changed +398
-0
lines changed Original file line number Diff line number Diff line change @@ -21,16 +21,29 @@ jobs:
21
21
runs-on : ubuntu-latest
22
22
steps :
23
23
- uses : actions/checkout@v4
24
+
24
25
- uses : actions/setup-node@v4
25
26
with :
26
27
node-version : " 18"
27
28
cache : " npm"
28
29
cache-dependency-path : webapp/package-lock.json
30
+
29
31
- uses : actions/configure-pages@v4
32
+
33
+ # 🔐 Inject secret into .env
34
+ - name : Create .env file
35
+ run : |
36
+ cat <<EOF > webapp/.env
37
+ REACT_APP_FORMSPREE_FORM_ID=${{ secrets.REACT_APP_FORMSPREE_FORM_ID }}
38
+ REACT_APP_CONTACT_EMAIL=${{ secrets.REACT_APP_CONTACT_EMAIL }}
39
+ EOF
40
+
30
41
- run : npm ci
31
42
working-directory : ./webapp
43
+
32
44
- run : npm run build
33
45
working-directory : ./webapp
46
+
34
47
- uses : actions/upload-pages-artifact@v3
35
48
with :
36
49
path : ./webapp/build
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import React, { useEffect } from 'react';
2
2
import './App.css' ;
3
3
import Header from './components/Header' ;
4
4
import Hero from './components/Hero' ;
5
+ import Contact from './components/Contact' ;
5
6
import Paper from './components/Paper' ;
6
7
import Demos from './components/Demos' ;
7
8
import Explanation from './components/Explanation' ;
@@ -96,6 +97,7 @@ function App() {
96
97
< div className = "App" >
97
98
< Header />
98
99
< Hero />
100
+ < Contact />
99
101
< Paper />
100
102
< Demos />
101
103
< Explanation />
You can’t perform that action at this time.
0 commit comments