ZEIT Now is a cloud platform for static sites and Serverless Functions
This action make a ZEIT Now deployment with github actions.
- Deploy to ZEIT now.
- Comment on pull request.
- Comment on commit.
- Create Deployment on github.
required ZEIT now token.
This is required if your deployment is made on team project. example: team_asdf1234
required This is required to comment on pull request.
This is optional args for now
cli. Example: --prod
The url of deployment preview.
{
"name": "zeit-now-deployment",
"version": 2,
"scope": "amond",
"public": false,
"github": {
"enabled": false
},
"builds": [
{ "src": "./public/**", "use": "@now/static" }
],
"routes": [
{ "src": "/(.*)", "dest": "public/$1" }
]
}
- This is a complete
.github/workflow/deploy.yml
example.
name: deploy website
on: [pull_request]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: amondnet/now-deployment@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
zeit-token: ${{ secrets.ZEIT_TOKEN }}
zeit-team-id: team_XXXXXXXXXXX
now-args: '--prod'