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 46
46
47
47
- name : Upload build
48
48
uses : actions/upload-artifact@v4
49
- if : github.ref == 'refs/heads/master'
49
+ if : github.ref == 'refs/heads/master' || github.ref == 'refs/heads/react19'
50
50
with :
51
51
name : app-dist
52
52
path : packages/internarbeidsflate-decorator-v3/dist
@@ -102,3 +102,29 @@ jobs:
102
102
project_id : ${{ vars.NAIS_MANAGEMENT_PROJECT_ID }}
103
103
headers : |-
104
104
cache-control: public, max-age=600
105
+
106
+ deploy-react-19 :
107
+ name : Deploy to prod
108
+ runs-on : ubuntu-latest
109
+ needs : build
110
+ if : github.ref == 'refs/heads/react19'
111
+ environment : dev-cdn-react19
112
+ permissions :
113
+ contents : ' read'
114
+ id-token : ' write'
115
+ steps :
116
+ - uses : actions/download-artifact@v4
117
+ with :
118
+ name : app-dist
119
+ path : dist
120
+ - name : Upload to CDN prod path
121
+ uses : nais/deploy/actions/cdn-upload/v2@master
122
+ with :
123
+ team : personoversikt
124
+ source : dist
125
+ destination : /internarbeidsflate-decorator-v3/dev/react19
126
+ cache_invalidation : true
127
+ identity_provider : ${{ secrets.NAIS_WORKLOAD_IDENTITY_PROVIDER }}
128
+ project_id : ${{ vars.NAIS_MANAGEMENT_PROJECT_ID }}
129
+ headers : |-
130
+ cache-control: public, max-age=600
You can’t perform that action at this time.
0 commit comments