Compare commits

...

12 Commits

Author SHA1 Message Date
98fb2bb530 Merge pull request 'chore: add example environment file and update deployment workflows' (#12) from chore/adds-env-example into main
All checks were successful
Vercel Preview Deployment / deploy (push) Successful in 1m16s
Build and Test / run-test (20.x) (push) Successful in 4m22s
Reviewed-on: http://gitea.hideyoshi.com.br/HideyoshiNakazone/hideyoshi-blog/pulls/12
2026-04-22 01:54:36 +00:00
57a4451e15 chore: add example environment file and update deployment workflows
All checks were successful
Build and Test / run-test (20.x) (push) Successful in 33s
Vercel Preview Deployment / deploy (pull_request) Has been skipped
2026-04-21 22:53:32 -03:00
44f072efd2 Merge pull request 'feat: remove DATABASE_URL from Vercel deployment workflow environment variables' (#11) from feature/adds-deploy-workflow into main
All checks were successful
Build and Test / run-test (20.x) (push) Successful in 40s
Vercel Preview Deployment / deploy (push) Successful in 1m10s
Reviewed-on: http://gitea.hideyoshi.com.br/HideyoshiNakazone/hideyoshi-blog/pulls/11
2026-04-21 19:48:35 +00:00
15578c7801 feat: remove DATABASE_URL from Vercel deployment workflow environment variables
All checks were successful
Build and Test / run-test (20.x) (push) Successful in 42s
Vercel Preview Deployment / deploy (pull_request) Successful in 1m15s
2026-04-21 16:28:54 -03:00
7e75ae57d9 Merge pull request 'feat: remove DATABASE_URL from Vercel deployment workflow environment variables' (#10) from feature/adds-deploy-workflow into main
All checks were successful
Build and Test / run-test (20.x) (push) Successful in 46s
Vercel Preview Deployment / deploy (push) Successful in 1m12s
Reviewed-on: http://gitea.hideyoshi.com.br/HideyoshiNakazone/hideyoshi-blog/pulls/10
2026-04-21 19:00:49 +00:00
ad28d2e04b feat: remove DATABASE_URL from Vercel deployment workflow environment variables
All checks were successful
Build and Test / run-test (20.x) (push) Successful in 45s
2026-04-21 16:00:33 -03:00
1bd7e909de Merge pull request 'feat: update Vercel deployment workflow to use production build and deploy' (#9) from feature/adds-deploy-workflow into main
Some checks failed
Build and Test / run-test (20.x) (push) Successful in 45s
Vercel Preview Deployment / deploy (push) Has been cancelled
Reviewed-on: http://gitea.hideyoshi.com.br/HideyoshiNakazone/hideyoshi-blog/pulls/9
2026-04-21 18:32:01 +00:00
cca07a91cd feat: update Vercel deployment workflow to use production build and deploy
All checks were successful
Build and Test / run-test (20.x) (push) Successful in 44s
2026-04-21 15:31:30 -03:00
a63c3ad00b Merge pull request 'feat: add DATABASE_URL to Vercel deployment workflow environment variables' (#8) from feature/adds-deploy-workflow into main
All checks were successful
Build and Test / run-test (20.x) (push) Successful in 38s
Vercel Preview Deployment / deploy (push) Successful in 1m1s
Reviewed-on: http://gitea.hideyoshi.com.br/HideyoshiNakazone/hideyoshi-blog/pulls/8
2026-04-21 17:55:34 +00:00
433dc0759c feat: add DATABASE_URL to Vercel deployment workflow environment variables
All checks were successful
Build and Test / run-test (20.x) (push) Successful in 42s
2026-04-21 14:55:09 -03:00
85e08e8819 Merge pull request 'feat: update Vercel deployment workflow to pull production environment' (#7) from feature/adds-deploy-workflow into main
Some checks failed
Build and Test / run-test (20.x) (push) Successful in 39s
Vercel Preview Deployment / deploy (push) Failing after 32s
Reviewed-on: http://gitea.hideyoshi.com.br/HideyoshiNakazone/hideyoshi-blog/pulls/7
2026-04-21 17:09:33 +00:00
3abbba5fbb feat: update Vercel deployment workflow to pull production environment
All checks were successful
Build and Test / run-test (20.x) (push) Successful in 44s
2026-04-21 14:09:09 -03:00
4 changed files with 64 additions and 3 deletions

16
.env.example Normal file
View File

@@ -0,0 +1,16 @@
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 Normal file
View File

@@ -0,0 +1,43 @@
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 }}`
})

View File

@@ -12,6 +12,7 @@ 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
@@ -20,10 +21,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=prod --token=${{ secrets.VERCEL_TOKEN }} run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
- name: Build Project Artifacts - name: Build Project Artifacts
run: vercel build --token=${{ secrets.VERCEL_TOKEN }} run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
- name: Deploy Project Artifacts to Vercel - name: Deploy Project Artifacts to Vercel
run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}

1
.gitignore vendored
View File

@@ -32,6 +32,7 @@ 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