Skip to content

Commit

Permalink
set environment on backend deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
DustinAlandzes committed Aug 26, 2024
1 parent 3e86e82 commit c65a9bb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/backend-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ on:
jobs:
deploy:
name: Deploy
environment:
name: github-pages
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
Expand All @@ -17,7 +19,7 @@ jobs:
uses: actions/checkout@v4

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/frontend-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
# Sample workflow for building and deploying a Next.js site to GitHub Pages
#
# To get started with Next.js see: https://nextjs.org/docs/getting-started
#
name: Deploy Next.js site to Pages
name: DeployFrontend

on:
workflow_run:
Expand Down

0 comments on commit c65a9bb

Please sign in to comment.