From 2a70466a8af940f62ef71a7b0eea573ab1b87197 Mon Sep 17 00:00:00 2001 From: Jialecl Date: Mon, 15 Jun 2026 16:59:55 +0200 Subject: [PATCH] Workflow updated --- .github/workflows/publish-release.yml | 26 ---------------- .github/workflows/publish-website.yml | 44 +++++++++++++-------------- .github/workflows/push-catalog-s3.yml | 30 +++++++++--------- 3 files changed, 37 insertions(+), 63 deletions(-) diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 5a5251374c..2da8e4a70f 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -18,16 +18,6 @@ jobs: node-version: 22.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-west-2 - role-to-assume: ${{ secrets.AWS_ROLE_SANDBOX }} - role-duration-seconds: 3600 - role-skip-session-tagging: true - - name: Install dependencies run: npm install @@ -48,19 +38,3 @@ jobs: env: NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} TAG_NAME: ${{ github.event.release.tag_name }} - - - name: Install scripts dependencies - run: cd scripts && npm install - - - name: Move RELEASE website to S3 - run: node scripts/release-website.js $TAG_NAME - env: - TAG_NAME: ${{ github.event.release.tag_name }} - - - name: Execute script version - run: node scripts/create-version.js $TAG_NAME - - - name: Deploy version to S3 Bucket - run: | - aws s3 rm s3://design.system.components.catalog/guidelines/version --recursive - aws s3 cp ./catalog/version/ s3://design.system.components.catalog/guidelines/version --recursive diff --git a/.github/workflows/publish-website.yml b/.github/workflows/publish-website.yml index 77caa7539c..e99ea85e4f 100644 --- a/.github/workflows/publish-website.yml +++ b/.github/workflows/publish-website.yml @@ -21,25 +21,25 @@ jobs: node-version: 22.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-west-2 - role-to-assume: ${{ secrets.AWS_ROLE_SANDBOX }} - role-duration-seconds: 3600 - role-skip-session-tagging: true - - - name: Install dependencies - run: npm install - - - name: Build library and website - env: - NEXT_PUBLIC_SITE_VERSION: next - run: npm run build - - - name: Move website to S3 - run: | - aws s3 rm s3://design-system-react-cdk-site/halstack/next/ --recursive - aws s3 cp ./apps/website/out/ s3://design-system-react-cdk-site/halstack/next/ --recursive + # - 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-west-2 + # role-to-assume: ${{ secrets.AWS_ROLE_SANDBOX }} + # role-duration-seconds: 3600 + # role-skip-session-tagging: true + + # - name: Install dependencies + # run: npm install + + # - name: Build library and website + # env: + # NEXT_PUBLIC_SITE_VERSION: next + # run: npm run build + + # - name: Move website to S3 + # run: | + # aws s3 rm s3://design-system-react-cdk-site/halstack/next/ --recursive + # aws s3 cp ./apps/website/out/ s3://design-system-react-cdk-site/halstack/next/ --recursive diff --git a/.github/workflows/push-catalog-s3.yml b/.github/workflows/push-catalog-s3.yml index 89844a6797..df97f0c878 100644 --- a/.github/workflows/push-catalog-s3.yml +++ b/.github/workflows/push-catalog-s3.yml @@ -18,20 +18,20 @@ jobs: node-version: 22.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: 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: 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 + # - 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