mirror of
https://github.com/zhigang1992/now-deployment.git
synced 2026-04-24 04:15:21 +08:00
feat: now cli v17
This commit is contained in:
7
.github/workflows/example-angular.yml
vendored
7
.github/workflows/example-angular.yml
vendored
@@ -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
.github/workflows/example-static.yml
vendored
8
.github/workflows/example-static.yml
vendored
@@ -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
.github/workflows/prod.yml
vendored
17
.github/workflows/prod.yml
vendored
@@ -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'
|
||||
Reference in New Issue
Block a user