Skip to content

Commit

Permalink
Add CI build
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiphoseer committed Oct 15, 2021
1 parent 17cc6d3 commit 7f10ced
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 10 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/build-app.yml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
14 changes: 7 additions & 7 deletions src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand All @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/environments/environment.prod.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export const environment = {
production: true,
data: {
apiUrl: "https://explorer.lu-dev.net/api/"
apiUrl: "/api/"
},
firebase: {
apiKey: "AIzaSyCxUJm4DFGfimoeGKPGT7-9f7gD0frJZ64",
Expand Down

0 comments on commit 7f10ced

Please sign in to comment.