File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Github Pages CI
2+
3+ on :
4+ push :
5+ branches : ["master"]
6+
7+ env :
8+ REACT_APP_BACKEND_URL : ${{ secrets.REACT_APP_BACKEND_URL }}
9+ REACT_APP_GITHUB_CLIENT_ID : ${{ secrets.REACT_APP_GITHUB_CLIENT_ID }}
10+ REACT_APP_GITHUB_CLIENT_SECRET : ${{ secrets.REACT_APP_GITHUB_CLIENT_SECRET }}
11+
12+ jobs :
13+ integrate :
14+ runs-on : ubuntu-latest
15+
16+ steps :
17+ - name : Checkout
18+ uses : actions/checkout@v3
19+
20+ - name : Install dependencies
21+ run : npm ci
22+
23+ - name : Build
24+ run : npm run build --if-present
25+
26+ - name : Deploy
27+ uses : JamesIves/github-pages-deploy-action@releases/v3
28+ with :
29+ BRANCH : gh-pages
30+ FOLDER : build
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ export interface Config {
66 githubClientId : string ;
77 githubClientSecret : string ;
88 baseUrl : string ;
9- redirectUrl : string ;
109}
1110
1211let config : Readonly < Nullable < Config > > = null ;
@@ -17,7 +16,6 @@ export function getConfig() {
1716 'REACT_APP_GITHUB_CLIENT_ID' ,
1817 'REACT_APP_GITHUB_CLIENT_SECRET' ,
1918 'REACT_APP_BACKEND_URL' ,
20- 'REACT_APP_FRONTEND_URL' ,
2119 ] . forEach ( ( variable ) => {
2220 if ( ! process . env [ variable ] ) {
2321 throw new Error ( `Environmnt variable '${ variable } ' is missing!` ) ;
@@ -27,7 +25,6 @@ export function getConfig() {
2725 githubClientId : process . env . REACT_APP_GITHUB_CLIENT_ID ! ,
2826 githubClientSecret : process . env . REACT_APP_GITHUB_CLIENT_SECRET ! ,
2927 baseUrl : process . env . REACT_APP_BACKEND_URL ! ,
30- redirectUrl : process . env . REACT_APP_FRONTEND_URL ! ,
3128 } ;
3229 }
3330 return config ;
You can’t perform that action at this time.
0 commit comments