+
Skip to content

kalkanisys/workflow-vercel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Workflow Vercel

This repository contains a reusable GitHub workflow to deploy frontend projects (mostly React/Next.js) on Vercel.

Features

  • Automated deployment to Vercel
  • Easy integration with React/Next.js projects
  • Reusable workflow for multiple projects

Usage

  1. Copy the workflow file from this repository to your project's .github/workflows directory.

  2. Create a .github/workflows/deploy.yml file in your project with the following content:

    name: Vercel deploy
    
    on:
      push:
        branches:
          - dev
          - main
      workflow_dispatch:
      # pull_request:
    
    jobs:
      deploy:
        uses: kalkanisys/workflow-vercel/.github/workflows/deploy.yml@main
        with:
          VERCEL_ORG_ID: team_*****
          VERCEL_PROJECT_ID: prj_*****
          VERCEL_SCOPE: teamscope # optional
          VERCEL_ARGS: ${{ (endsWith(github.ref,'refs/heads/main') || endsWith(github.ref,'refs/heads/master')) && '--prod' || '' }} # optional
          VERCEL_WORKING_DIR: "." # optional
        secrets:
          VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
          VERCEL_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # optional
  3. Add the required secrets to your GitHub repository:

    • VERCEL_TOKEN: Your Vercel token
    • VERCEL_PROJECT_ID: Your Vercel project ID
    • VERCEL_ORG_ID: Your Vercel organization ID

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contributing

Contributions are welcome! Please open an issue or submit a pull request for any changes.

Contact

For any questions or support, please open an issue in this repository.

About

Reusable workflow to deploy on vercel

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载