Compare commits
1 Commits
main
...
3378b7c0b8
| Author | SHA1 | Date | |
|---|---|---|---|
|
3378b7c0b8
|
16
.env.example
16
.env.example
@@ -1,16 +0,0 @@
|
|||||||
FRONTEND_PATH=
|
|
||||||
PROJECT_ORG_SLUG=
|
|
||||||
|
|
||||||
SESSION_SECRET=
|
|
||||||
|
|
||||||
DATABASE_URL=
|
|
||||||
|
|
||||||
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=
|
|
||||||
CLERK_SECRET_KEY=
|
|
||||||
|
|
||||||
S3_ENDPOINT=
|
|
||||||
S3_BUCKET_NAME=
|
|
||||||
S3_REGION=
|
|
||||||
S3_ACCESS_KEY=
|
|
||||||
S3_SECRET_KEY=
|
|
||||||
S3_PUBLIC_URL=
|
|
||||||
43
.github/workflows/deploy-preview.yml
vendored
43
.github/workflows/deploy-preview.yml
vendored
@@ -1,43 +0,0 @@
|
|||||||
name: Vercel Preview Deployment
|
|
||||||
|
|
||||||
env:
|
|
||||||
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
|
|
||||||
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
|
|
||||||
|
|
||||||
on:
|
|
||||||
pull_request:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
deploy:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
if: "!contains(github.event.pull_request.labels.*.name, 'skip-ci')"
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Install Vercel CLI
|
|
||||||
run: npm install --global vercel@latest
|
|
||||||
|
|
||||||
- name: Pull Vercel Environment Information
|
|
||||||
run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
|
|
||||||
|
|
||||||
- name: Build Project Artifacts
|
|
||||||
run: vercel build --token=${{ secrets.VERCEL_TOKEN }}
|
|
||||||
|
|
||||||
- name: Deploy Project Artifacts to Vercel
|
|
||||||
id: deploy
|
|
||||||
run: echo "url=$(vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }})" >> $GITHUB_OUTPUT
|
|
||||||
|
|
||||||
- name: Comment Preview URL on PR
|
|
||||||
uses: actions/github-script@v7
|
|
||||||
with:
|
|
||||||
script: |
|
|
||||||
github.rest.issues.createComment({
|
|
||||||
issue_number: context.issue.number,
|
|
||||||
owner: context.repo.owner,
|
|
||||||
repo: context.repo.repo,
|
|
||||||
body: `🔍 **Preview deployment ready!**\n\n${{ steps.deploy.outputs.url }}`
|
|
||||||
})
|
|
||||||
|
|
||||||
7
.github/workflows/deploy.yml
vendored
7
.github/workflows/deploy.yml
vendored
@@ -12,7 +12,6 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: "!contains(github.event.pull_request.labels.*.name, 'skip-ci')"
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
@@ -21,10 +20,10 @@ jobs:
|
|||||||
run: npm install --global vercel@latest
|
run: npm install --global vercel@latest
|
||||||
|
|
||||||
- name: Pull Vercel Environment Information
|
- name: Pull Vercel Environment Information
|
||||||
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
|
run: vercel pull --yes --environment=prod --token=${{ secrets.VERCEL_TOKEN }}
|
||||||
|
|
||||||
- name: Build Project Artifacts
|
- name: Build Project Artifacts
|
||||||
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
|
run: vercel build --token=${{ secrets.VERCEL_TOKEN }}
|
||||||
|
|
||||||
- name: Deploy Project Artifacts to Vercel
|
- name: Deploy Project Artifacts to Vercel
|
||||||
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}
|
run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }}
|
||||||
|
|||||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -32,7 +32,6 @@ yarn-error.log*
|
|||||||
|
|
||||||
# env files (can opt-in for committing if needed)
|
# env files (can opt-in for committing if needed)
|
||||||
.env*
|
.env*
|
||||||
!.env.example
|
|
||||||
|
|
||||||
# vercel
|
# vercel
|
||||||
.vercel
|
.vercel
|
||||||
|
|||||||
Reference in New Issue
Block a user