File tree 2 files changed +46
-29
lines changed
2 files changed +46
-29
lines changed Original file line number Diff line number Diff line change 1
- name : CI
1
+ name : Automated Workflow
2
2
" on " :
3
3
push :
4
4
branches :
73
73
source : ./dist
74
74
destination : /conditional-logic/latest
75
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
-
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
76
+ invalidations : true
104
77
docs :
105
78
runs-on : ubuntu-latest
106
79
steps :
Original file line number Diff line number Diff line change
1
+ name : Manual Workflow
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
10
+
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 }}"
18
+
19
+ steps :
20
+ - name : Checkout
21
+ uses : actions/checkout@v2
22
+ - name : setup nodejs
23
+ uses : actions/setup-node@v2
24
+ with :
25
+ node-version : 14.15.4
26
+ - name : yarn install
27
+ run : >
28
+ echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >
29
+ .npmrc
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 : /conditional-logic/latest
43
+ acl : public-read
44
+ invalidations : ${{ github.event.inputs.invalidations }}
You can’t perform that action at this time.
0 commit comments