Skip to content

updated the version of the action in the docs (#246) #367

updated the version of the action in the docs (#246)

updated the version of the action in the docs (#246) #367

name: example - basic auth
on:
push:
branches:
- master
pull_request_target:
jobs:
basic-auth:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ./
id: now-deployment-staging
if: github.event_name == 'pull_request_target'
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
vercel-token: ${{ secrets.VERCEL_TOKEN }}
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID_AUTH }}
working-directory: example/express-basic-auth
- uses: ./
id: now-deployment-production
if: github.event_name == 'push'
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
vercel-token: ${{ secrets.VERCEL_TOKEN }}
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID_AUTH }}
vercel-args: '--prod'
working-directory: example/express-basic-auth