Skip to content

Commit

Permalink
github actions vercel test
Browse files Browse the repository at this point in the history
  • Loading branch information
RodrigoLuglio committed Sep 26, 2024
1 parent b1bc49c commit 750344f
Showing 1 changed file with 37 additions and 12 deletions.
49 changes: 37 additions & 12 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,45 @@
name: Deploy CI
name: Vercel

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

on:
push:
branches: [master]
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
branches:
- main

jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[skip ci]')"
permissions:
contents: read
deployments: write
statuses: write
pull-requests: write

steps:
- name: Checkout
uses: actions/checkout@v2
- name: Deploy to Vercel Action
uses: BetaHuhn/deploy-to-vercel-action@v1
- uses: actions/checkout@v4

- name: Setup bun
uses: oven-sh/setup-bun@v1
with:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
bun-version: latest

- name: Install dependencies
run: bun install

- name: Build
run: bun run build

- uses: nexterias/actions-vercel@v1
with:
token: ${{ secrets.YOUR_VERCEL_TOKEN }}
org-id: ${{ secrets.YOUR_VERCEL_ORG_ID }}
project-id: ${{ secrets.YOUR_VERCEL_PROJECT_ID }}
production: ${{ github.ref == 'refs/heads/main' }}
prebuilt: true # If set to true, build will be performed using GitHub Actions.

0 comments on commit 750344f

Please sign in to comment.