|
1 | 1 | name: Deploy and Update Release Notes |
2 | 2 |
|
3 | 3 | on: |
4 | | - push: |
5 | | - branches: |
6 | | - - master # Successful Merge on master branch |
| 4 | + push: |
| 5 | + branches: |
| 6 | + - master # Successful Merge on master branch |
7 | 7 |
|
8 | 8 | jobs: |
9 | | - deploy: |
10 | | - name: Deploy Angular Application |
11 | | - runs-on: ${{ matrix.os }} |
| 9 | + deploy: |
| 10 | + name: Deploy Angular Application |
| 11 | + runs-on: ${{ matrix.os }} |
12 | 12 |
|
13 | | - strategy: |
14 | | - matrix: |
15 | | - node-version: [12.x] |
16 | | - os: [ubuntu-latest] |
| 13 | + strategy: |
| 14 | + matrix: |
| 15 | + node-version: [12.x] |
| 16 | + os: [ubuntu-latest] |
17 | 17 |
|
18 | | - steps: |
19 | | - - name: Checkout to current branch |
20 | | - uses: actions/checkout@v2 |
21 | | - with: |
22 | | - persist-credentials: false |
| 18 | + steps: |
| 19 | + - name: Checkout to current branch |
| 20 | + uses: actions/checkout@v2 |
| 21 | + with: |
| 22 | + persist-credentials: false |
23 | 23 |
|
24 | | - - name: Configure Node.js ${{ matrix.node-version }} |
25 | | - uses: actions/setup-node@v1 |
26 | | - with: |
27 | | - node-version: ${{ matrix.node-version }} |
| 24 | + - name: Configure Node.js ${{ matrix.node-version }} |
| 25 | + uses: actions/setup-node@v1 |
| 26 | + with: |
| 27 | + node-version: ${{ matrix.node-version }} |
28 | 28 |
|
29 | | - - name: Install Dependencies |
30 | | - run: | |
31 | | - echo 'Running Setup...' |
32 | | - yarn install |
33 | | - npm install -g @angular/cli |
| 29 | + - name: Install Dependencies |
| 30 | + run: | |
| 31 | + echo 'Running Setup...' |
| 32 | + yarn install |
| 33 | + npm install -g @angular/cli |
34 | 34 |
|
35 | | - - name: Building Production Environment |
36 | | - run: | |
37 | | - echo 'Building and Compiling...' |
38 | | - rm -rf dist |
39 | | - yarn build |
40 | | - echo ${{ secrets. ACCESS_TOKEN }} |
| 35 | + - name: Building Production Environment |
| 36 | + run: | |
| 37 | + echo 'Building and Compiling...' |
| 38 | + rm -rf dist |
| 39 | + yarn build |
| 40 | + echo ${{ secrets. ACCESS_TOKEN }} |
41 | 41 |
|
42 | | - - name: Angular Deploy gh-pages Actions |
43 | | - uses: JamesIves/github-pages-deploy-action@releases/v3 |
44 | | - with: |
45 | | - ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} # see the Configuration section for how you can create secrets |
46 | | - COMMIT_MESSAGE: Release ${{ github.event.pull_request.head.ref }} |
47 | | - BRANCH: gh-pages # The branch the action should deploy to. |
48 | | - BASE_BRANCH: master |
49 | | - FOLDER: dist |
| 42 | + - name: Angular Deploy gh-pages Actions |
| 43 | + uses: JamesIves/github-pages-deploy-action@releases/v3 |
| 44 | + with: |
| 45 | + ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} # see the Configuration section for how you can create secrets |
| 46 | + COMMIT_MESSAGE: Release ${{ github.event.pull_request.head.ref }} |
| 47 | + BRANCH: gh-pages # The branch the action should deploy to. |
| 48 | + BASE_BRANCH: master |
| 49 | + FOLDER: dist |
50 | 50 |
|
51 | | - - name: Tag Deployment |
52 | | - run: | |
53 | | - echo 'Tagging Deployment...' |
54 | | - git tag -l ${{ github.event.pull_request.head.ref }} |
| 51 | + - name: Tag Deployment |
| 52 | + run: | |
| 53 | + echo 'Tagging Deployment...' |
| 54 | + git tag -l ${{ github.event.pull_request.head.ref }} |
55 | 55 |
|
56 | | - release: |
57 | | - name: Update Release notes and Changelog |
58 | | - runs-on: ${{ matrix.os }} |
59 | | - needs: deploy |
| 56 | + release: |
| 57 | + name: Update Release notes and Changelog |
| 58 | + runs-on: ${{ matrix.os }} |
| 59 | + needs: deploy |
60 | 60 |
|
61 | | - strategy: |
62 | | - matrix: |
63 | | - node-version: [12.x] |
64 | | - os: [ubuntu-latest] |
| 61 | + strategy: |
| 62 | + matrix: |
| 63 | + node-version: [12.x] |
| 64 | + os: [ubuntu-latest] |
65 | 65 |
|
66 | | - steps: |
67 | | - - name: Checkout to current branch |
68 | | - uses: actions/checkout@v2 |
69 | | - with: |
70 | | - persist-credentials: false |
| 66 | + steps: |
| 67 | + - name: Checkout to current branch |
| 68 | + uses: actions/checkout@v2 |
| 69 | + with: |
| 70 | + persist-credentials: false |
71 | 71 |
|
72 | | - - name: Configure Node.js ${{ matrix.node-version }} |
73 | | - uses: actions/setup-node@v1 |
74 | | - with: |
75 | | - node-version: ${{ matrix.node-version }} |
| 72 | + - name: Configure Node.js ${{ matrix.node-version }} |
| 73 | + uses: actions/setup-node@v1 |
| 74 | + with: |
| 75 | + node-version: ${{ matrix.node-version }} |
76 | 76 |
|
77 | | - - name: Install Dependencies |
78 | | - run: | |
79 | | - echo 'Running Setup...' |
80 | | - yarn install |
| 77 | + - name: Install Dependencies |
| 78 | + run: | |
| 79 | + echo 'Running Setup...' |
| 80 | + yarn install |
81 | 81 |
|
82 | | - - name: Update Release notes |
83 | | - run: | |
84 | | - echo 'Update Release Notes...' |
85 | | - npm run gren -- --token=${{ secrets.GREN_GITHUB_TOKEN }} |
| 82 | + - name: Update Release notes |
| 83 | + run: | |
| 84 | + echo 'Update Release Notes...' |
| 85 | + npm run gren -- --token=${{ secrets.GREN_GITHUB_TOKEN }} |
0 commit comments