generated from technologiestiftung/template-repo-citylab
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Add deploy to production via actions
- Loading branch information
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Deploy Migrations to Production | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
|
||
jobs: | ||
deploy: | ||
environment: production | ||
runs-on: ubuntu-22.04 | ||
if: "!contains(github.event.head_commit.message, 'skip ci')" | ||
|
||
env: | ||
SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN }} | ||
SUPABASE_DB_PASSWORD: ${{ secrets.DB_PASSWORD }} | ||
PRODUCTION_PROJECT_ID: ${{ secrets.PROJECT_ID }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: supabase/setup-cli@v1 | ||
with: | ||
version: 1.50.4 | ||
|
||
- run: | | ||
supabase link --project-ref $PRODUCTION_PROJECT_ID | ||
supabase db push |
d2695f7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
oeffentliches-gestalten-ai-search-poc – ./
oeffentliches-gestalten-ai-sear-git-014983-technologiestiftung1.vercel.app
oeffentliches-gestalten-ai-search-poc-technologiestiftung1.vercel.app
oeffentliches-gestalten-ai-search-poc.vercel.app