From 205224b201367c805fa7171210f26acca3b119e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Gr=C3=A9vin?= Date: Wed, 21 Feb 2024 18:46:01 +0100 Subject: [PATCH] feat(action) Update deploy prod) --- .github/workflows/deploy.yml | 12 +----------- .github/workflows/pr-closed.yml | 2 -- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index cd12c5678..13042df78 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -107,21 +107,11 @@ jobs: VITE_ALGOLIA_INDEX: ${{ env.ALGOLIA_INDEX }} VITE_GTM_ID: ${{ env.GTM_ID }} - - name: Setup aws - if: github.ref == 'refs/heads/master' && github.event_name == 'push' - 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: ${{ env.AWS_REGION }} - - name: Install aws cli - if: github.event_name == 'pull_request' id: install-aws-cli uses: unfor19/install-aws-cli-action@v1 - - name: Setup aws dev - if: github.event_name == 'pull_request' + - name: Setup aws uses: aws-actions/configure-aws-credentials@v4 with: role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }} diff --git a/.github/workflows/pr-closed.yml b/.github/workflows/pr-closed.yml index 79fcbd6cd..6e3476069 100644 --- a/.github/workflows/pr-closed.yml +++ b/.github/workflows/pr-closed.yml @@ -9,12 +9,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Install aws cli - if: github.event_name == 'pull_request' id: install-aws-cli uses: unfor19/install-aws-cli-action@v1 - name: Setup aws - if: github.event_name == 'pull_request' uses: aws-actions/configure-aws-credentials@v4 with: role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}