Skip to content

Commit

Permalink
feat(action) Update deploy prod)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grevin committed Feb 22, 2024
1 parent 9e9f3ee commit 205224b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
12 changes: 1 addition & 11 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/pr-closed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 205224b

Please sign in to comment.