diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index ae9c2d658..90f3a011a 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -13,6 +13,7 @@ concurrency: permissions: packages: write + deployments: write jobs: format: @@ -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' }} diff --git a/angular.json b/angular.json index 4e955b374..25a234809 100644 --- a/angular.json +++ b/angular.json @@ -74,6 +74,7 @@ }, "standalone": { "outputHashing": "none", + "index": "src/environments/standalone/index.html", "fileReplacements": [ { "replace": "src/environments/environment.ts", @@ -83,6 +84,7 @@ }, "standalonedemo": { "outputHashing": "none", + "index": "src/environments/standalone/index.html", "fileReplacements": [ { "replace": "src/environments/environment.ts", diff --git a/src/environments/standalone/index.html b/src/environments/standalone/index.html new file mode 100644 index 000000000..4b95cfd65 --- /dev/null +++ b/src/environments/standalone/index.html @@ -0,0 +1,13 @@ + + +
+ +