Merge pull request #19 from kloudmate/content-type #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |