Skip to content

Commit 3cfe477

Browse files
committed
Merge branch 'main' into gh-pages
2 parents e777cf2 + 6265271 commit 3cfe477

3 files changed

Lines changed: 12 additions & 16 deletions

File tree

.github/workflows/main.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,31 @@
11
# Simple workflow for deploying static content to GitHub Pages
22
name: Deploy static content to Pages
3-
43
on:
54
# Runs on pushes targeting the default branch
65
push:
76
branches: ["gh-pages"]
8-
97
# Allows you to run this workflow manually from the Actions tab
108
workflow_dispatch:
11-
129
# Sets the GITHUB_TOKEN permissions to allow deployment to GitHub Pages
1310
permissions:
1411
contents: read
1512
pages: write
1613
id-token: write
17-
1814
# Allow one concurrent deployment
1915
concurrency:
2016
group: "pages"
2117
cancel-in-progress: true
22-
2318
jobs:
2419
# Single deploy job since we're just deploying
2520
deploy:
2621
environment:
2722
name: github-pages
2823
url: ${{ steps.deployment.outputs.page_url }}
2924
runs-on: ubuntu-latest
25+
env:
26+
VITE_CONTACT_ID: ${{ secrets.VITE_CONTACT_ID }}
27+
VITE_PUBLIC_KEY: ${{ secrets.VITE_PUBLIC_KEY }}
28+
VITE_SERVICE_ID: ${{ secrets.VITE_SERVICE_ID }}
3029
steps:
3130
- name: Checkout
3231
uses: actions/checkout@v4

package-lock.json

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/Contact.jsx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,9 @@ import { EarthCanvas } from './canvas';
77
import { SectionWrapper } from '../hoc';
88
import { slideIn } from '../utils/motion';
99

10-
const VITE_CONTACT_ID = 'template_gwfennj';
11-
const VITE_SERVIE_ID = 'service_qtf9x59';
12-
const VITE_PUBLIC_KEY = 'utyCUykSb6479dPJ0';
13-
14-
console.log('loading emailjs api keys...')
15-
console.log(VITE_CONTACT_ID, VITE_SERVIE_ID, VITE_PUBLIC_KEY);
16-
console.log('emailjs api keys loaded...')
10+
const VITE_CONTACT_ID = import.meta.env.VITE_CONTACT_ID
11+
const VITE_SERVIE_ID = import.meta.env.VITE_SERVIE_ID
12+
const VITE_PUBLIC_KEY = import.meta.env.VITE_PUBLIC_KEY
1713

1814
const Contact = () => {
1915

0 commit comments

Comments
 (0)