Skip to content

Commit 30d400c

Browse files
authored
Fix publish cdn (#385)
* Fix publish cdn * Fix notify slack version * Fix cdn url in slack notification
1 parent 09c4f55 commit 30d400c

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

.github/workflows/publish-cdn.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ jobs:
4545
aws s3 sync s3_dist s3://constructor-frontend-prod/sdk/client-javascript --cache-control 'public, max-age=31536000, immutable' --acl 'public-read'
4646
4747
- name: Notify Slack about new publish to CDN
48-
uses: ravsamhq/notify-slack-action@bca2d7f5660b25833a27bda4f6b8bef389ebfefd25 # v2.3.0
48+
uses: ravsamhq/notify-slack-action@bca2d7f5660b833a27bda4f6b8bef389ebfefd25 # v2.3.0
4949
with:
5050
notification_title: "☁️ New constructorio-client-javascript release published to CDN at version ${{ steps.copy-files.outputs.version }}"
5151
status: ${{ job.status }}
52-
footer: "CDN URL: https://cdn.constructor.io/sdk/client-javascript/${{ steps.copy-files.outputs.version }}.js"
52+
footer: "CDN URL: https://cdn.cnstrc.com/sdk/client-javascript/${{ steps.copy-files.outputs.version }}.js"
5353
env:
5454
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

.github/workflows/publish.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,5 @@ concurrency:
1212
jobs:
1313
publish_to_cdn:
1414
name: Publish to CDN
15-
runs-on: ubuntu-latest
16-
steps:
17-
- uses: actions/checkout@v4
18-
19-
- name: Publish to CDN
20-
uses: ./.github/workflows/publish-cdn.yml
21-
secrets: inherit
15+
uses: ./.github/workflows/publish-cdn.yml
16+
secrets: inherit

0 commit comments

Comments
 (0)