Skip to content

Commit 6f00ad4

Browse files
committed
Deploy react 19 til egen CDN path
1 parent 7e0bd89 commit 6f00ad4

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
@@ -45,7 +45,7 @@ jobs:
4545

4646
- name: Upload build
4747
uses: actions/upload-artifact@v4
48-
if: github.ref == 'refs/heads/master'
48+
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/react19'
4949
with:
5050
name: app-dist
5151
path: dist
@@ -97,3 +97,29 @@ jobs:
9797
cache_invalidation: true
9898
headers: |-
9999
cache-control: public, max-age=600
100+
101+
deploy-react-19:
102+
name: Deploy to dev(react 19)
103+
runs-on: ubuntu-latest
104+
needs: build
105+
if: github.ref == 'refs/heads/react19'
106+
environment: dev-cdn-react19
107+
permissions:
108+
contents: 'read'
109+
id-token: 'write'
110+
steps:
111+
- uses: actions/download-artifact@v4
112+
with:
113+
name: app-dist
114+
path: dist
115+
- name: Upload to CDN prod path
116+
uses: nais/deploy/actions/cdn-upload/v2@master
117+
with:
118+
team: personoversikt
119+
source: dist
120+
destination: /internarbeidsflate-decorator-v3/dev/react19
121+
cache_invalidation: true
122+
identity_provider: ${{ secrets.NAIS_WORKLOAD_IDENTITY_PROVIDER }}
123+
project_id: ${{ vars.NAIS_MANAGEMENT_PROJECT_ID }}
124+
headers: |-
125+
cache-control: public, max-age=600

0 commit comments

Comments
 (0)