diff --git a/.github/workflows/build-app.yml b/.github/workflows/build-app.yml new file mode 100644 index 00000000..c8684bac --- /dev/null +++ b/.github/workflows/build-app.yml @@ -0,0 +1,14 @@ +name: Build the app +on: ['push'] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - run: npm ci && npm run build + - name: Upload build artifact + uses: actions/upload-artifact@v2 + with: + name: lu-explorer + path: docs diff --git a/package.json b/package.json index 1d63823c..bc981223 100644 --- a/package.json +++ b/package.json @@ -5,8 +5,8 @@ "scripts": { "ng": "ng", "start": "ng serve", - "build": "ng build --prod", - "gh-build": "ng build --prod --base-href=/lu-explorer/", + "build": "ng build --configuration production", + "gh-build": "ng build --configuration production --base-href=/lu-explorer/", "test": "ng test", "lint": "ng lint", "e2e": "ng e2e" diff --git a/src/app/app.module.ts b/src/app/app.module.ts index fa759a26..eb238a47 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -14,10 +14,10 @@ import { UtilModule } from './util/util.module'; import { MiscModule } from './misc/misc.module'; import { SerializeModule } from './serialize/serialize.module'; -import { AngularFireModule } from '@angular/fire'; -import { AngularFireAnalyticsModule } from '@angular/fire/analytics'; -import { AngularFirestoreModule } from '@angular/fire/firestore'; -import { environment } from '../environments/environment'; +// import { AngularFireModule } from '@angular/fire'; +// import { AngularFireAnalyticsModule } from '@angular/fire/analytics'; +// import { AngularFirestoreModule } from '@angular/fire/firestore'; +// import { environment } from '../environments/environment'; @NgModule({ declarations: [ @@ -32,9 +32,9 @@ import { environment } from '../environments/environment'; SerializeModule, UtilModule, MiscModule, - AngularFireModule.initializeApp(environment.firebase), - AngularFireAnalyticsModule, - AngularFirestoreModule + // AngularFireModule.initializeApp(environment.firebase), + // AngularFireAnalyticsModule, + // AngularFirestoreModule ], providers: [ LuJsonService, diff --git a/src/environments/environment.prod.ts b/src/environments/environment.prod.ts index 86b6acb5..e64d7a97 100644 --- a/src/environments/environment.prod.ts +++ b/src/environments/environment.prod.ts @@ -1,7 +1,7 @@ export const environment = { production: true, data: { - apiUrl: "https://explorer.lu-dev.net/api/" + apiUrl: "/api/" }, firebase: { apiKey: "AIzaSyCxUJm4DFGfimoeGKPGT7-9f7gD0frJZ64",