forked from signalfx/splunk-otel-js-web
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (31 loc) · 976 Bytes
/
release-cdn.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Release
on:
push:
branches: [ main ]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Configure AWS Credentials Action for GitHub Actions
uses: aws-actions/[email protected]
with:
aws-region: us-east-1
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '18.x'
- name: Install dependencies
run: npm install
- name: Build
run: npm run compile -w @kloudmate/otel-web-session-recorder
- name: Build otel web
run: npm run compile -w @kloudmate/otel-web
- name: Deploy
run: npm run deploy
env:
BUCKET_NAME: ${{ secrets.BUCKET_NAME }}
CDN_DISTRIBUTION_ID: ${{ secrets.CDN_DISTRIBUTION_ID }}