Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ concurrency:

permissions:
packages: write
deployments: write

jobs:
format:
Expand Down Expand Up @@ -122,3 +123,26 @@ jobs:
with:
name: build-standalone-demo
path: dist/netzgrafik-frontend/

deploy-preview:
runs-on: ubuntu-latest
needs: build-standalone
steps:
- uses: OpenRailAssociation/web-deployment-action@v1
with:
artifact_name: build-standalone
condition_production: false # GitHub Pages is used for production
domain_preview: ${{ vars.WEB_DOMAIN_PREVIEW }}
dir_base: ${{ vars.WEB_DIR_BASE }}
dir_preview_base: ${{ vars.WEB_DIR_PREVIEW_BASE }}
dir_preview_subdir: nge-pr-${{ github.event.number }}
ssh_host: ${{ vars.WEB_SSH_HOST }}
ssh_user: ${{ vars.WEB_SSH_USER }}
ssh_key: ${{ secrets.DEMO_WEBSITE_SSH_KEY }}
linkchecker_enabled: false
sticky_comment_enabled: false
step_summary_enabled: true
gh_deployment: demo
env:
HAVE_SSH_KEY: ${{ secrets.DEMO_WEBSITE_SSH_KEY != '' }}
if: ${{ env.HAVE_SSH_KEY == 'true' }}
2 changes: 2 additions & 0 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
},
"standalone": {
"outputHashing": "none",
"index": "src/environments/standalone/index.html",
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
Expand All @@ -83,6 +84,7 @@
},
"standalonedemo": {
"outputHashing": "none",
"index": "src/environments/standalone/index.html",
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
Expand Down
13 changes: 13 additions & 0 deletions src/environments/standalone/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!doctype html>
<html id="NetzgrafikRootHtml" lang="en" class="sbb-lean">
<head>
<meta charset="utf-8" />
<title>Netzgrafik-Editor</title>
<!--CONFIG-->
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" type="image/x-icon" href="favicon.ico" />
</head>
<body>
<sbb-root></sbb-root>
</body>
</html>
Loading