feat: now cli v17

This commit is contained in:
Minsu Lee
2020-02-18 22:03:09 +09:00
parent 1b68c85aab
commit 3efc88be20
4 changed files with 11 additions and 22 deletions

View File

@@ -14,9 +14,12 @@ jobs:
cd example/angular
npm install
npx ng build --prod
- uses: amondnet/now-deployment@v1
- uses: ./
id: now-deployment
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
zeit-token: ${{ secrets.ZEIT_TOKEN }}
now-args: '--prod example/angular/dist/angular'
now-org-id: ${{ secrets.NOW_ORG_ID }}
now-project-id: $$ {{ secrets.NOW_PROJECT_ID_ANGULAR }}
working-directory: example/angular/dist/angular
now-args: '--prod '

View File

@@ -9,9 +9,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: amondnet/now-deployment@v1
- uses: ./
id: now-deployment
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
zeit-token: ${{ secrets.ZEIT_TOKEN }}
now-args: '--prod example/static'
now-org-id: ${{ secrets.NOW_ORG_ID }}
now-project-id: $$ {{ secrets.NOW_PROJECT_ID_STATIC }}
now-args: '--prod'
working-directory: example/static

View File

@@ -1,17 +0,0 @@
name: production
on:
push:
branches:
- master
jobs:
prod:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: ./
id: now-deployment
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
zeit-token: ${{ secrets.ZEIT_TOKEN }}
now-args: '--prod'

View File

@@ -80,7 +80,6 @@ async function nowDeploy () {
return await exec.exec('npx', [
'now',
...(nowArgs.split(/ +/)),
'--confirm',
'-t',
zeitToken,
'-m',