Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 0a46646

Browse files
authoredFeb 18, 2020
Merge 8ebff2b into 0fd9718
2 parents 0fd9718 + 8ebff2b commit 0a46646

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+10727
-49
lines changed
 

‎.github/workflows/deploy.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@ jobs:
88
deploy:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v1
11+
- uses: actions/checkout@v2
1212
- uses: ./
1313
id: now-deployment
1414
with:
1515
github-token: ${{ secrets.GITHUB_TOKEN }}
1616
zeit-token: ${{ secrets.ZEIT_TOKEN }}
1717
github-comment: false
18-
#ZEIT_TEAMID: amond
18+
now-org-id: ${{ secrets.NOW_ORG_ID }}
19+
now-project-id: $$ {{ secrets.NOW_PROJECT_ID_STATIC }}

‎.github/workflows/example-angular.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: example - angular
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
branches:
8+
- master
9+
jobs:
10+
angular:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: build
15+
run: |
16+
cd example/angular
17+
npm install
18+
npx ng build --prod
19+
- uses: ./
20+
id: now-deployment-staging
21+
if: github.event_name == 'pull_request'
22+
with:
23+
github-token: ${{ secrets.GITHUB_TOKEN }}
24+
zeit-token: ${{ secrets.ZEIT_TOKEN }}
25+
now-org-id: ${{ secrets.NOW_ORG_ID }}
26+
now-project-id: ${{ secrets.NOW_PROJECT_ID_ANGULAR }}
27+
working-directory: example/angular/dist/angular
28+
- uses: ./
29+
id: now-deployment-production
30+
if: github.event_name == 'push'
31+
with:
32+
github-token: ${{ secrets.GITHUB_TOKEN }}
33+
zeit-token: ${{ secrets.ZEIT_TOKEN }}
34+
now-org-id: ${{ secrets.NOW_ORG_ID }}
35+
now-project-id: ${{ secrets.NOW_PROJECT_ID_ANGULAR }}
36+
working-directory: example/angular/dist/angular
37+
now-args: '--prod '

0 commit comments

Comments
 (0)
Please sign in to comment.