Skip to content

Commit

Permalink
Merge branch 'main' of github.com:BookHive-ufcg/bookhive-web
Browse files Browse the repository at this point in the history
  • Loading branch information
AmiltonCabral committed Aug 14, 2024
2 parents 5ef1113 + a454a58 commit 89a9d16
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/vercel-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Deploy to vercel on merge
on:
push:
branches:
- main
jobs:
build_and_deploy:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
repository-projects: write
steps:
- uses: actions/checkout@v2
- uses: amondnet/vercel-action@v20
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
vercel-args: '--prod'
vercel-org-id: ${{ secrets.ORG_ID}}
vercel-project-id: ${{ secrets.PROJECT_ID}}
24 changes: 24 additions & 0 deletions .github/workflows/vercel-pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Create vercel preview URL on pull request
on:
pull_request:
branches:
- main
jobs:
build_and_deploy:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
repository-projects: write
steps:
- uses: actions/checkout@v2
- uses: amondnet/vercel-action@v20
id: vercel-deploy
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
vercel-org-id: ${{ secrets.ORG_ID}}
vercel-project-id: ${{ secrets.PROJECT_ID}}
- name: preview-url
run: |
echo ${{ steps.vercel-deploy.outputs.preview-url }}

1 comment on commit 89a9d16

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for bookhive-web ready!

✅ Preview
https://bookhive-bozom4cj0-amiltoncabrals-projects.vercel.app

Built with commit 89a9d16.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.