Skip to content

Commit e0bc758

Browse files
committed
Deploy react 19 til egen CDN path
1 parent c6f1ff3 commit e0bc758

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
@@ -46,7 +46,7 @@ jobs:
4646

4747
- name: Upload build
4848
uses: actions/upload-artifact@v4
49-
if: github.ref == 'refs/heads/master'
49+
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/react19'
5050
with:
5151
name: app-dist
5252
path: packages/internarbeidsflate-decorator-v3/dist
@@ -102,3 +102,29 @@ jobs:
102102
project_id: ${{ vars.NAIS_MANAGEMENT_PROJECT_ID }}
103103
headers: |-
104104
cache-control: public, max-age=600
105+
106+
deploy-react-19:
107+
name: Deploy to dev(react 19)
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

0 commit comments

Comments
 (0)