Skip to content

Commit

Permalink
Preparation for move to custom domain (#77)
Browse files Browse the repository at this point in the history
- Prepared for move to custom domain
- Added contact via e-mail
- Fixed validation bug
- Fixed bug for first time users selecting LAW Pausenregelung
- Fixed "invalid date" bug after switching Pausenreglung
- Improved build pipeline
- Improved usability of first settings dialog (shows required fields on first time use)
- Always showing required fields in settings dialog
- Made all fonts local
- ReEnabled full sources in browser debugging in local ng serve
  • Loading branch information
moritzluedtke authored Sep 25, 2022
1 parent 5cba337 commit 2fb63f0
Show file tree
Hide file tree
Showing 24 changed files with 1,384 additions and 490 deletions.
61 changes: 61 additions & 0 deletions .github/workflows/main-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: CI Pipeline

on:
pull_request:
branches: [ master ]
push:
branches: [ master ]

jobs:
build-project:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 18.9.1 ]

steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Lint & build the app
run: |
npm ci
npm run build:ci
- name: Upload artifact
if: github.ref == 'refs/heads/master'
uses: actions/upload-artifact@v3
with:
name: webapp-artifact
path: dist/SISOSIGN/**

deploy-on-github-pages:
runs-on: ubuntu-latest
needs: build-project
if: github.ref == 'refs/heads/master'

permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- name: Setup GitHub Pages
uses: actions/configure-pages@v1
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: webapp-artifact
path: dist/
- name: Upload artifact to GitHub Pages
uses: actions/upload-pages-artifact@v1
with:
path: dist/
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
23 changes: 14 additions & 9 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": 1,
"newProjectRoot": "projects",
"projects": {
"SISOSIG": {
"SISOSIGN": {
"projectType": "application",
"schematics": {},
"root": "",
Expand All @@ -13,7 +13,7 @@
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "dist/SISOSIG",
"outputPath": "dist/SISOSIGN",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
Expand Down Expand Up @@ -59,7 +59,12 @@
]
},
"local": {
"optimization": false
"buildOptimizer": false,
"optimization": false,
"vendorChunk": true,
"extractLicenses": false,
"sourceMap": true,
"namedChunks": true
}
},
"defaultConfiguration": "prod"
Expand All @@ -68,18 +73,18 @@
"builder": "@angular-devkit/build-angular:dev-server",
"configurations": {
"local": {
"browserTarget": "SISOSIG:build:local"
"browserTarget": "SISOSIGN:build:local"
},
"prod": {
"browserTarget": "SISOSIG:build:prod"
"browserTarget": "SISOSIGN:build:prod"
}
},
"defaultConfiguration": "local"
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "SISOSIG:build"
"browserTarget": "SISOSIGN:build"
}
},
"test": {
Expand Down Expand Up @@ -116,16 +121,16 @@
"builder": "@angular-devkit/build-angular:protractor",
"options": {
"protractorConfig": "e2e/protractor.conf.js",
"devServerTarget": "SISOSIG:serve:local"
"devServerTarget": "SISOSIGN:serve:local"
},
"configurations": {
"prod": {
"devServerTarget": "SISOSIG:serve:prod"
"devServerTarget": "SISOSIGN:serve:prod"
}
}
}
}
}
},
"defaultProject": "SISOSIG"
"defaultProject": "SISOSIGN"
}
9 changes: 0 additions & 9 deletions cloudbuild.yml

This file was deleted.

Loading

0 comments on commit 2fb63f0

Please sign in to comment.