Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: now cli v17, add NOW_PROJECT_ID and NOW_ORG_ID env variable #26

Merged
merged 15 commits into from
Feb 18, 2020
Prev Previous commit
Next Next commit
feat: now cli v17
amondnet committed Feb 18, 2020

Verified

This commit was signed with the committer’s verified signature. The key has expired.
amondnet Minsu Lee
commit 3efc88be207fcf8d00058743f83142ec9b9fdea9
7 changes: 5 additions & 2 deletions .github/workflows/example-angular.yml
Original file line number Diff line number Diff line change
@@ -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 '
8 changes: 6 additions & 2 deletions .github/workflows/example-static.yml
Original file line number Diff line number Diff line change
@@ -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

17 changes: 0 additions & 17 deletions .github/workflows/prod.yml

This file was deleted.

1 change: 0 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -80,7 +80,6 @@ async function nowDeploy () {
return await exec.exec('npx', [
'now',
...(nowArgs.split(/ +/)),
'--confirm',
'-t',
zeitToken,
'-m',