Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(action) Update deploy prod #1067

Merged
merged 1 commit into from
Feb 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading