Skip to content

Commit 6a5a626

Browse files
authored
Merge pull request #69 from dlackner/add-github-actions-build
Add GitHub Actions workflow to run build on push and PRs
2 parents f216073 + f5d3741 commit 6a5a626

2 files changed

Lines changed: 30 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Setup Node.js
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: '20'
20+
cache: 'npm'
21+
22+
- name: Install dependencies
23+
run: npm ci
24+
25+
- name: Create env file
26+
run: echo "${{ secrets.ENV_FILE }}" > .env
27+
28+
- name: Run build
29+
run: npm run build

app/fund/create/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1075,7 +1075,7 @@ function CreateSubmissionContent() {
10751075
<div className="flex gap-6">
10761076
<div className="w-48 h-32 bg-gray-300 rounded-lg flex items-center justify-center overflow-hidden">
10771077
<img
1078-
src={`https://maps.googleapis.com/maps/api/streetview?size=400x300&location=${encodeURIComponent(property.address + ', ' + property.city + ', ' + property.state)}&heading=0&pitch=0&key=${process.env.NEXT_PUBLIC_GOOGLE_MAPS_API_KEY || 'AIzaSyBOA7lqk8SbE4B7OEWp2F3Fk8cWU3GHgQg'}`}
1078+
src={`https://maps.googleapis.com/maps/api/streetview?size=400x300&location=${encodeURIComponent(property.address + ', ' + property.city + ', ' + property.state)}&heading=0&pitch=0&key=${process.env.NEXT_PUBLIC_GOOGLE_MAPS_API_KEY}`}
10791079
alt={`Street view of ${property.address}`}
10801080
className="w-full h-full object-cover rounded-lg"
10811081
onError={(e) => {

0 commit comments

Comments
 (0)