Skip to content

Commit 7e9ed78

Browse files
committedFeb 26, 2024·
Oppdatere github workflows
1 parent a70731f commit 7e9ed78

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed
 

‎.github/workflows/main-v3.yaml

+10-1
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,19 @@ jobs:
2626
- name: Build application
2727
working-directory: './v3/packages/internarbeidsflate-decorator-v3'
2828
run: bun run build
29-
- name: Upload to CDN
29+
- name: Upload to CDN dev path
30+
if: github.ref == 'refs/heads/v3' || github.ref == 'refs/heads/dev'
3031
uses: navikt/frontend/actions/cdn-upload/v1@main
3132
with:
3233
cdn-team-name: personoversikt
3334
source: ./v3/packages/internarbeidsflate-decorator-v3/dist/
3435
destination: /internarbeidsflate-decorator-v3/dev/latest
3536
no-cache-paths: "internarbeidsflate-decorator-v3/dev/latest/dist/asset-manifest.json,internarbeidsflate-decorator-v3/dev/latest/dist/bundle.js,internarbeidsflate-decorator-v3/dev/latest/dist/index.css"
37+
- name: Upload to CDN prod path
38+
if: github.ref == 'refs/heads/main'
39+
uses: navikt/frontend/actions/cdn-upload/v1@main
40+
with:
41+
cdn-team-name: personoversikt
42+
source: ./v3/packages/internarbeidsflate-decorator-v3/dist/
43+
destination: /internarbeidsflate-decorator-v3/prod/latest
44+
no-cache-paths: "internarbeidsflate-decorator-v3/prod/latest/dist/asset-manifest.json,internarbeidsflate-decorator-v3/prod/latest/dist/bundle.js,internarbeidsflate-decorator-v3/prod/latest/dist/index.css"

0 commit comments

Comments
 (0)
Please sign in to comment.