https://github.com/federicogarcia/simple-vercel-deploy-action
Deploy a project in Vercel easily
https://github.com/federicogarcia/simple-vercel-deploy-action
action actions automation continuous-delivery continuous-deployment deploy deployment github-actions nextjs vercel vercel-deployment
Last synced: 2 months ago
JSON representation
Deploy a project in Vercel easily
- Host: GitHub
- URL: https://github.com/federicogarcia/simple-vercel-deploy-action
- Owner: FedericoGarcia
- License: mit
- Created: 2025-02-18T02:51:45.000Z (2 months ago)
- Default Branch: master
- Last Pushed: 2025-02-18T03:18:46.000Z (2 months ago)
- Last Synced: 2025-02-18T03:31:27.207Z (2 months ago)
- Topics: action, actions, automation, continuous-delivery, continuous-deployment, deploy, deployment, github-actions, nextjs, vercel, vercel-deployment
- Homepage: https://github.com/marketplace/actions/simple-vercel-deploy-action
- Size: 0 Bytes
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Simple Vercel deploy action

This action allows you to deploy your project to Vercel with minimal configuration.
## Inputs
### `vercel_team_id`
**Required** | The Vercel Organization/Team ID.
More info:
[https://vercel.com/docs/accounts/create-a-team#find-your-team-id](https://vercel.com/docs/accounts/create-a-team#find-your-team-id)### `vercel_project_id`
**Required** | The Vercel Project ID.
More info:
[https://vercel.com/docs/projects/project-configuration/general-settings#project-id](https://vercel.com/docs/projects/project-configuration/general-settings#project-id)### `vercel_account_token`
**Required** | The Vercel Account Token.
More info:
[https://vercel.com/guides/how-do-i-use-a-vercel-api-access-token#creating-an-access-token](https://vercel.com/guides/how-do-i-use-a-vercel-api-access-token#creating-an-access-token)## Examples
### Basic usage
#### `.github/workflows/vercel-deploy.yml`
```yaml
name: Vercel deployon:
push:
branches:
- mainjobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Vercel deploy
uses: FedericoGarcia/simple-vercel-deploy-action@v1
with:
vercel_team_id: ${{ vars.VERCEL_TEAM_ID }}
vercel_project_id: ${{ vars.VERCEL_PROJECT_ID }}
vercel_account_token: ${{ secrets.VERCEL_ACCOUNT_TOKEN }}
```### Multiple environments (projects)
#### `.github/workflows/vercel-deploy-development.yml`
```yaml
name: Vercel deploy developmenton:
push:
branches:
- developmentjobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Vercel deploy
uses: FedericoGarcia/simple-vercel-deploy-action@v1
with:
vercel_team_id: ${{ vars.VERCEL_TEAM_ID }}
vercel_project_id: ${{ vars.VERCEL_PROJECT_ID_DEVELOPMENT }}
vercel_account_token: ${{ secrets.VERCEL_ACCOUNT_TOKEN }}
```#### `.github/workflows/vercel-deploy-production.yml`
```yaml
name: Vercel deploy productionon:
push:
branches:
- productionjobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Vercel deploy
uses: FedericoGarcia/simple-vercel-deploy-action@v1
with:
vercel_team_id: ${{ vars.VERCEL_TEAM_ID }}
vercel_project_id: ${{ vars.VERCEL_PROJECT_ID_PRODUCTION }}
vercel_account_token: ${{ secrets.VERCEL_ACCOUNT_TOKEN }}
```## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.