Skip to content

Commit

Permalink
ci: run CDN if dist files (#1438)
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v authored Sep 26, 2023
1 parent aa62c4d commit 4d889cd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ jobs:
run: echo "versions=$(npm run --silent ci:prepare-release)" >> ${GITHUB_OUTPUT}

- id: 'upload-files-version'
if: ${{ always() && hashFiles('packages/rum/dist/bundles/*.js') }}
uses: 'google-github-actions/upload-cloud-storage@v1'
with:
parent: false
Expand All @@ -119,6 +120,7 @@ jobs:
Cache-Control:public,max-age=31536000,immutable
- id: 'upload-files-major-version'
if: ${{ always() && hashFiles('packages/rum/dist/bundles/*.js') }}
uses: 'google-github-actions/upload-cloud-storage@v1'
with:
parent: false
Expand All @@ -130,6 +132,7 @@ jobs:
Cache-Control:public,max-age=604800,immutable
- id: 'upload-file-index'
if: ${{ always() && hashFiles('index.html') }}
uses: 'google-github-actions/upload-cloud-storage@v1'
with:
parent: false
Expand Down

0 comments on commit 4d889cd

Please sign in to comment.