|
4 | 4 | name: CD process to deploy to App-Service service |
5 | 5 |
|
6 | 6 | on: |
7 | | - # Trigger the workflow on pull request but only for the master branch |
8 | | - pull_request: |
9 | | - types: [closed] |
| 7 | + push: |
10 | 8 | branches: |
11 | | - - master |
| 9 | + - 47-notify-deployments |
| 10 | + # Trigger the workflow on pull request but only for the master branch |
| 11 | + # pull_request: |
| 12 | + # types: [closed] |
| 13 | + # branches: |
| 14 | + # - master |
12 | 15 |
|
13 | 16 | jobs: |
14 | 17 | build-and-deploy: |
15 | | - name: Deploy to Azure |
16 | | - runs-on: ubuntu-latest |
17 | | - timeout-minutes: 60 |
18 | 18 | steps: |
19 | | - - name: Checkout of master |
20 | | - uses: actions/checkout@master |
| 19 | + - uses: actions/checkout@v2 |
| 20 | + - name: Slack Notification |
| 21 | + |
| 22 | + env: |
| 23 | + SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} |
| 24 | + # name: Deploy to Azure |
| 25 | + # runs-on: ubuntu-latest |
| 26 | + # timeout-minutes: 60 |
| 27 | + # steps: |
| 28 | + # - name: Checkout of master |
| 29 | + # uses: actions/checkout@master |
21 | 30 |
|
22 | | - - name: Set up Node.js version |
23 | | - uses: actions/setup-node@v1 |
24 | | - with: |
25 | | - node-version: '12.x' |
| 31 | + # - name: Set up Node.js version |
| 32 | + # uses: actions/setup-node@v1 |
| 33 | + # with: |
| 34 | + # node-version: '12.x' |
26 | 35 |
|
27 | | - - name: Inject Secrets |
28 | | - env: |
29 | | - SCOPES: ${{ secrets.scopes }} |
30 | | - CLIENT_ID: ${{ secrets.client_id }} |
31 | | - AUTHORITY: ${{ secrets.authority }} |
32 | | - run: sudo sh scripts/populate-keys.sh |
| 36 | + # - name: Inject Secrets |
| 37 | + # env: |
| 38 | + # SCOPES: ${{ secrets.scopes }} |
| 39 | + # CLIENT_ID: ${{ secrets.client_id }} |
| 40 | + # AUTHORITY: ${{ secrets.authority }} |
| 41 | + # run: sudo sh scripts/populate-keys.sh |
33 | 42 |
|
34 | | - - name: 'run: npm install and build' |
35 | | - run: | |
36 | | - npm install |
37 | | - npm run build --prod --if-present |
| 43 | + # - name: 'run: npm install and build' |
| 44 | + # run: | |
| 45 | + # npm install |
| 46 | + # npm run build --prod --if-present |
38 | 47 |
|
39 | | - - name: 'Deploy to Azure Web App' |
40 | | - uses: azure/webapps-deploy@v1 |
41 | | - with: |
42 | | - app-name: 'time-tracker-ui' |
43 | | - slot-name: 'production' |
44 | | - publish-profile: ${{ secrets.AzureAppService_PublishProfile_728dc744f9384bf38e8a0446aaaee29d }} |
45 | | - package: dist/time-tracker |
| 48 | + # - name: 'Deploy to Azure Web App' |
| 49 | + # uses: azure/webapps-deploy@v1 |
| 50 | + # with: |
| 51 | + # app-name: 'time-tracker-ui' |
| 52 | + # slot-name: 'production' |
| 53 | + # publish-profile: ${{ secrets.AzureAppService_PublishProfile_728dc744f9384bf38e8a0446aaaee29d }} |
| 54 | + # package: dist/time-tracker |
0 commit comments