A collection of GitHub actions for Vercel projects.
This action will deploy the application to Vercel.
- uses: actions/checkout@v3
- uses: aboutbits/github-actions-vercel/deploy@v1
env:
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }}
vercel-organization-id: yyy
vercel-project-id: zzz
arguments: --prod
The following inputs can be used as step.with
keys:
Name | Required/Default | Description |
---|---|---|
working-directory |
(.) | The working directory of the action |
vercel-token |
Required | The token to access the Vercel API |
vercel-organization-id |
Required | The ID of the Vercel organization |
vercel-project-id |
Required | The ID of the Vercel project |
build-arguments |
(empty) | Additional build command line arguments |
deploy-arguments |
(empty) | Additional deploy command line arguments |
The following outputs can be used after the successful execution:
Name | Description |
---|---|
url |
The URL of the deployment |
This action will link an added domain to a Vercel deployment URL.
- uses: actions/checkout@v3
- uses: aboutbits/github-actions-vercel/link-domain@v1
env:
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }}
vercel-scope: xxx
deployment-domain: https://xyz.vercel.app
preview-domain: example.aboutbits.it
The following inputs can be used as step.with
keys:
Name | Required/Default | Description |
---|---|---|
working-directory |
(.) | The working directory of the action |
vercel-token |
Required | The token to access the Vercel API |
vercel-scope |
Required | The Vercel scope |
deployment-domain |
Required | The deployment domain recieved from Vercel |
preview-domain |
Required | The custom preview domain that should be linked |
This action will unlink an added domain of a Vercel deployment URL.
- uses: actions/checkout@v3
- uses: aboutbits/github-actions-vercel/unlink-domain@v1
env:
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }}
vercel-scope: xxx
preview-domain: example.aboutbits.it
The following inputs can be used as step.with
keys:
Name | Required/Default | Description |
---|---|---|
working-directory |
(.) | The working directory of the action |
vercel-token |
Required | The token to access the Vercel API |
vercel-scope |
Required | The Vercel scope |
preview-domain |
Required | The custom preview domain that should be unlinked |
In order to have a verioning in place and working, create leightweight tags that point to the appropriate minor release versions.
Creating a new minor release:
git tag v1
git push --tags
Replacing an already existing minor release:
git tag -d v1
git push origin :refs/tags/v1
git tag v1
git push --tags
About Bits is a company based in South Tyrol, Italy. You can find more information about us on our website.
For support, please contact [email protected].
The MIT License (MIT). Please see the license file for more information.