Skip to content

Commit 4aa89ac

Browse files
committed
Deploy react 19 til egen CDN path
1 parent 4e02280 commit 4aa89ac

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

.github/workflows/main-v3.yaml

+27-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838

3939
- name: Upload build
4040
uses: actions/upload-artifact@v4
41-
if: github.ref == 'refs/heads/master'
41+
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/react19'
4242
with:
4343
name: app-dist
4444
path: dist
@@ -90,3 +90,29 @@ jobs:
9090
cache_invalidation: true
9191
headers: |-
9292
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

0 commit comments

Comments
 (0)