Skip to content

Workflow file for this run

name: Publish Design system components catalog
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install Node.js 18.x
uses: actions/setup-node@v1
with:
node-version: 18.x
registry-url: https://registry.npmjs.org/
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1
role-to-assume: ${{ secrets.AWS_ROLE_SANDBOX }}
role-duration-seconds: 3600
role-skip-session-tagging: true
- name: Execute script catalog
run: node scripts/create-catalog.js
- name: Deploy catalog to S3 Bucket
run: |
aws s3 rm s3://design.system.components.catalog/guidelines/catalog --recursive
aws s3 cp ./catalog/components/ s3://design.system.components.catalog/guidelines/catalog --recursive