File tree 1 file changed +27
-1
lines changed
1 file changed +27
-1
lines changed Original file line number Diff line number Diff line change 38
38
39
39
- name : Upload build
40
40
uses : actions/upload-artifact@v4
41
- if : github.ref == 'refs/heads/master'
41
+ if : github.ref == 'refs/heads/master' || github.ref == 'refs/heads/react19'
42
42
with :
43
43
name : app-dist
44
44
path : dist
90
90
cache_invalidation : true
91
91
headers : |-
92
92
cache-control: public, max-age=600
93
+
94
+ deploy-react-19 :
95
+ name : Deploy to dev(react 19)
96
+ runs-on : ubuntu-latest
97
+ needs : build
98
+ if : github.ref == 'refs/heads/react19'
99
+ environment : dev-cdn-react19
100
+ permissions :
101
+ contents : ' read'
102
+ id-token : ' write'
103
+ steps :
104
+ - uses : actions/download-artifact@v4
105
+ with :
106
+ name : app-dist
107
+ path : dist
108
+ - name : Upload to CDN prod path
109
+ uses : nais/deploy/actions/cdn-upload/v2@master
110
+ with :
111
+ team : personoversikt
112
+ source : dist
113
+ destination : /internarbeidsflate-decorator-v3/dev/react19
114
+ cache_invalidation : true
115
+ identity_provider : ${{ secrets.NAIS_WORKLOAD_IDENTITY_PROVIDER }}
116
+ project_id : ${{ vars.NAIS_MANAGEMENT_PROJECT_ID }}
117
+ headers : |-
118
+ cache-control: public, max-age=600
You can’t perform that action at this time.
0 commit comments