Skip to content

Commit

Permalink
turn on supabase deploy, fix up maintenance page (#493)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xBigBoss authored Jun 28, 2024
1 parent 98fe25b commit a819220
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 9 deletions.
19 changes: 12 additions & 7 deletions .github/actions/deploy/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ inputs:
description: "The URL to use for notifying QA of a new deployment."
required: false
default: ""
skip-supabase-deploy:
description: "Whether to skip the Supabase deployment."
required: false
default: "false"
runs:
using: "composite"
steps:
Expand All @@ -36,13 +40,14 @@ runs:
yarn-install: false
env:
YARN_ENABLE_HARDENED_MODE: "0"
# - name: Supabase Deploy
# id: deploy
# uses: ./.github/actions/supabase-deploy
# with:
# supabase-project-id: ${{ inputs.supabase-project-id }}
# supabase-access-token: ${{ inputs.supabase-access-token }}
# supabase-db-password: ${{ inputs.supabase-db-password }}
- name: Supabase Deploy
if: ${{ inputs.skip-supabase-deploy != 'true' }}
id: deploy
uses: ./.github/actions/supabase-deploy
with:
supabase-project-id: ${{ inputs.supabase-project-id }}
supabase-access-token: ${{ inputs.supabase-access-token }}
supabase-db-password: ${{ inputs.supabase-db-password }}
- name: Extract Branch
id: extract-branch
uses: ./.github/actions/extract-branch
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/deploy-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ on:
push:
branches: [main]
workflow_dispatch:
inputs:
skip-supabase-deploy:
description: 'Whether to skip the Supabase deployment.'
required: false
default: 'false'
workflow_call:
secrets:
VERCEL_TOKEN:
Expand Down Expand Up @@ -50,3 +55,4 @@ jobs:
supabase-access-token: ${{ secrets.SUPABASE_ACCESS_TOKEN }}
supabase-db-password: ${{ secrets.PRODUCTION_SUPABASE_DB_PASSWORD }}
qa-notification-url: ${{ secrets.CI_QA_NOTIFICATION_URL }}
skip-supabase-deploy: ${{ inputs.skip-supabase-deploy }}
6 changes: 6 additions & 0 deletions .github/workflows/deploy-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ on:
push:
branches: [dev]
workflow_dispatch:
inputs:
skip-supabase-deploy:
description: 'Whether to skip the Supabase deployment.'
required: false
default: 'false'
workflow_call:
secrets:
VERCEL_TOKEN:
Expand Down Expand Up @@ -50,3 +55,4 @@ jobs:
supabase-access-token: ${{ secrets.SUPABASE_ACCESS_TOKEN }}
supabase-db-password: ${{ secrets.STAGING_SUPABASE_DB_PASSWORD }}
qa-notification-url: ${{ secrets.CI_QA_NOTIFICATION_URL }}
skip-supabase-deploy: ${{ inputs.skip-supabase-deploy }}
6 changes: 4 additions & 2 deletions apps/next/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,20 +91,22 @@ export default api.withTRPC(MyApp)
function MaintenanceMode() {
return (
<YStack
p="$4"
ai="center"
jc="center"
w="100%"
h="100%"
$gtMd={{
p: '$6',
ai: 'flex-start',
jc: 'flex-start',
}}
>
<IconSendLogo size={'$2.5'} color="$color12" />
<H1 $gtMd={{ size: '$8' }} fontWeight={'300'} color="$color12">
<H1 $gtMd={{ size: '$8' }} size="$4" fontWeight={'300'} color="$color12">
currently undergoing maintenance
</H1>
<H2 $gtMd={{ size: '$6' }} fontWeight={'300'} color="$color12">
<H2 $gtMd={{ size: '$6' }} size="$4" fontWeight={'300'} color="$color12">
We will be back shortly!
</H2>
</YStack>
Expand Down

0 comments on commit a819220

Please sign in to comment.