|
1 | 1 | name: Manual Workflow
|
2 | 2 | on:
|
3 |
| - workflow_dispatch: |
4 |
| - inputs: |
5 |
| - invalidations: |
6 |
| - description: | |
7 |
| - If set to 'true', invalidates previous upload. |
8 |
| - default: "true" |
9 |
| - required: true |
| 3 | + workflow_dispatch: |
| 4 | + inputs: |
| 5 | + invalidations: |
| 6 | + description: | |
| 7 | + If set to 'true', invalidates previous upload. |
| 8 | + default: "true" |
| 9 | + required: true |
10 | 10 |
|
11 | 11 | jobs:
|
12 |
| - cdn: |
13 |
| - runs-on: ubuntu-latest |
14 |
| - env: |
15 |
| - DRY_RUN: ${{ github.event.inputs.dry_run }} |
16 |
| - GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" |
17 |
| - NPM_TOKEN: "${{ secrets.NPM_TOKEN }}" |
| 12 | + cdn: |
| 13 | + runs-on: ubuntu-latest |
| 14 | + env: |
| 15 | + DRY_RUN: ${{ github.event.inputs.dry_run }} |
| 16 | + GITHUB_TOKEN: "${{ secrets.GITHUB }}" |
| 17 | + NPM_TOKEN: "${{ secrets.NPM_TOKEN }}" |
18 | 18 |
|
19 |
| - steps: |
20 |
| - - name: Checkout |
21 |
| - uses: actions/checkout@v3 |
22 |
| - - name: setup nodejs |
23 |
| - uses: actions/setup-node@v3 |
24 |
| - with: |
25 |
| - node-version: 16 |
26 |
| - - name: yarn install |
27 |
| - run: > |
28 |
| - echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > |
29 |
| - .npmrc |
| 19 | + steps: |
| 20 | + - name: Checkout |
| 21 | + uses: actions/checkout@v3 |
| 22 | + - name: setup nodejs |
| 23 | + uses: actions/setup-node@v3 |
| 24 | + with: |
| 25 | + node-version: 16 |
| 26 | + - name: yarn install |
| 27 | + run: > |
| 28 | + echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > |
| 29 | + .npmrc |
30 | 30 |
|
31 |
| - yarn install |
32 |
| - - name: yarn build |
33 |
| - run: yarn build |
34 |
| - - name: upload latest bundle |
35 |
| - uses: CoCreate-app/CoCreate-s3@master |
36 |
| - with: |
37 |
| - aws-key-id: "${{ secrets.AWSACCESSKEYID }}" |
38 |
| - aws-access-key: "${{ secrets.AWSSECERTACCESSKEY }}" |
39 |
| - distributionId: "${{ secrets.DISTRIBUTION_ID }}" |
40 |
| - bucket: testcrudbucket |
41 |
| - source: ./dist |
42 |
| - destination: /render/latest |
43 |
| - acl: public-read |
44 |
| - invalidations: ${{ github.event.inputs.invalidations }} |
| 31 | + yarn install |
| 32 | + - name: yarn build |
| 33 | + run: yarn build |
| 34 | + - name: upload latest bundle |
| 35 | + uses: CoCreate-app/CoCreate-s3@master |
| 36 | + with: |
| 37 | + aws-key-id: "${{ secrets.AWSACCESSKEYID }}" |
| 38 | + aws-access-key: "${{ secrets.AWSSECERTACCESSKEY }}" |
| 39 | + distributionId: "${{ secrets.DISTRIBUTION_ID }}" |
| 40 | + bucket: testcrudbucket |
| 41 | + source: ./dist |
| 42 | + destination: /render/latest |
| 43 | + acl: public-read |
| 44 | + invalidations: ${{ github.event.inputs.invalidations }} |
0 commit comments