Skip to content

Commit

Permalink
feat: add pomoc.gug redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
ryzizub committed Feb 13, 2024
1 parent 7964c72 commit 5ef19ce
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .firebaserc
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@
],
"production": [
"gug-web-2023"
],
"pomoc": [
"pomoc-gug-2023"
]
}
}
},
"etags": {}
}
}
14 changes: 14 additions & 0 deletions .github/workflows/firebase-hosting-production-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
11 changes: 11 additions & 0 deletions firebase.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,17 @@
"destination": "/index.html"
}
]
},
{
"public": "pomoc",
"target": "pomoc",
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
}
]
}
11 changes: 11 additions & 0 deletions pomoc/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="refresh" content="0; url=https://forms.gle/bpY9W6hgBUPQY2gv6">
<title>Redirecting...</title>
</head>
<body>
<p>If you are not redirected automatically, follow the <a href="https://forms.gle/bpY9W6hgBUPQY2gv6">link to the form</a>.</p>
</body>
</html>

0 comments on commit 5ef19ce

Please sign in to comment.