|
34 | 34 | outputs: |
35 | 35 | new_release_published: "${{ steps.semantic.outputs.new_release_published }}" |
36 | 36 | new_release_version: "${{ steps.semantic.outputs.new_release_version }}" |
37 | | - cdn: |
38 | | - runs-on: ubuntu-latest |
39 | | - needs: release |
40 | | - if: needs.release.outputs.new_release_published == 'true' |
41 | | - env: |
42 | | - VERSION: "${{ needs.release.outputs.new_release_version }}" |
43 | | - steps: |
44 | | - - name: Checkout |
45 | | - uses: actions/checkout@v2 |
46 | | - - name: setup nodejs |
47 | | - uses: actions/setup-node@v2 |
48 | | - with: |
49 | | - node-version: 14.15.4 |
50 | | - - name: yarn install |
51 | | - run: > |
52 | | - echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > |
53 | | - .npmrc |
54 | | -
|
55 | | - yarn install |
56 | | - - name: yarn build |
57 | | - run: yarn build |
58 | | - - name: upload bundle as version |
59 | | - uses: CoCreate-app/CoCreate-s3@master |
60 | | - with: |
61 | | - aws-key-id: "${{ secrets.AWSACCESSKEYID }}" |
62 | | - aws-access-key: "${{ secrets.AWSSECERTACCESSKEY }}" |
63 | | - bucket: testcrudbucket |
64 | | - source: ./dist |
65 | | - destination: "/dashboard/${{env.VERSION}}" |
66 | | - acl: public-read |
67 | | - - name: upload bundle as latest |
68 | | - uses: CoCreate-app/CoCreate-s3@master |
69 | | - with: |
70 | | - aws-key-id: "${{ secrets.AWSACCESSKEYID }}" |
71 | | - aws-access-key: "${{ secrets.AWSSECERTACCESSKEY }}" |
72 | | - bucket: testcrudbucket |
73 | | - source: ./dist |
74 | | - destination: /dashboard/latest |
75 | | - acl: public-read |
76 | | - |
77 | | - dist: |
78 | | - runs-on: ubuntu-latest |
79 | | - needs: release |
80 | | - if: needs.release.outputs.new_release_published |
81 | | - steps: |
82 | | - - name: Checkout |
83 | | - uses: actions/checkout@v2 |
84 | | - with: |
85 | | - GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" |
86 | | - - name: setup nodejs |
87 | | - uses: actions/setup-node@v2 |
88 | | - with: |
89 | | - node-version: 14.15.4 |
90 | | - - name: yarn install |
91 | | - run: > |
92 | | - echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > |
93 | | - .npmrc |
94 | 37 |
|
95 | | - yarn install |
96 | | - - run: yarn build |
97 | | - - run: git add . |
98 | | - - run: git config user.email "[email protected]" |
99 | | - - run: git config user.name "frank pagan" |
100 | | - - run: git commit --allow-empty -m "add dist bundle" |
101 | | - - run: git pull origin master |
102 | | - - run: git commit --allow-empty -m "add dist bundle" |
103 | | - - run: git push origin master |
104 | 38 | docs: |
105 | 39 | runs-on: ubuntu-latest |
106 | 40 | steps: |
|
0 commit comments