File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Simple workflow for deploying static content to GitHub Pages
22name : Deploy static content to Pages
3-
43on :
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
1310permissions :
1411 contents : read
1512 pages : write
1613 id-token : write
17-
1814# Allow one concurrent deployment
1915concurrency :
2016 group : " pages"
2117 cancel-in-progress : true
22-
2318jobs :
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
Original file line number Diff line number Diff line change @@ -7,13 +7,9 @@ import { EarthCanvas } from './canvas';
77import { SectionWrapper } from '../hoc' ;
88import { 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
1814const Contact = ( ) => {
1915
You can’t perform that action at this time.
0 commit comments