From 5ef19ce11f777910f624fa411850a605048242b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20=C5=A0imon=C3=ADk?= Date: Tue, 13 Feb 2024 20:32:04 +0100 Subject: [PATCH] feat: add pomoc.gug redirect --- .firebaserc | 6 ++++-- .../firebase-hosting-production-merge.yml | 14 ++++++++++++++ firebase.json | 11 +++++++++++ pomoc/index.html | 11 +++++++++++ 4 files changed, 40 insertions(+), 2 deletions(-) create mode 100644 pomoc/index.html diff --git a/.firebaserc b/.firebaserc index 6f08c5b..1dbdbed 100644 --- a/.firebaserc +++ b/.firebaserc @@ -10,9 +10,11 @@ ], "production": [ "gug-web-2023" + ], + "pomoc": [ + "pomoc-gug-2023" ] } } - }, - "etags": {} + } } \ No newline at end of file diff --git a/.github/workflows/firebase-hosting-production-merge.yml b/.github/workflows/firebase-hosting-production-merge.yml index 2d489d8..449a97b 100644 --- a/.github/workflows/firebase-hosting-production-merge.yml +++ b/.github/workflows/firebase-hosting-production-merge.yml @@ -23,3 +23,17 @@ jobs: projectId: gug-web-2023 env: FIREBASE_CLI_PREVIEWS: hostingchannels + + deploy-pomoc: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: FirebaseExtended/action-hosting-deploy@v0 + with: + repoToken: '${{ secrets.GITHUB_TOKEN }}' + firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_GUG_WEB_2023 }}' + channelId: live + target: pomoc + projectId: gug-web-2023 + env: + FIREBASE_CLI_PREVIEWS: hostingchannels \ No newline at end of file diff --git a/firebase.json b/firebase.json index 0f8c240..9dee3be 100644 --- a/firebase.json +++ b/firebase.json @@ -45,6 +45,17 @@ "destination": "/index.html" } ] + }, + { + "public": "pomoc", + "target": "pomoc", + "ignore": ["firebase.json", "**/.*", "**/node_modules/**"], + "rewrites": [ + { + "source": "**", + "destination": "/index.html" + } + ] } ] } diff --git a/pomoc/index.html b/pomoc/index.html new file mode 100644 index 0000000..c3d39c3 --- /dev/null +++ b/pomoc/index.html @@ -0,0 +1,11 @@ + + + + + + Redirecting... + + +

If you are not redirected automatically, follow the link to the form.

+ +