Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rajguptaH authored Sep 25, 2023
1 parent 79d3f0f commit 8701aab
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0' # Adjust the version as needed
dotnet-version: '6.0' # Adjust the version as needed # \--source-bundle S3Bucket="elasticbeanstalk-$AWS_REGION",S3Key=$GITHUB_SHA.zip

- name: Build .NET Core Project
run: dotnet build WebApiExample/WebApiExample/WebApiCrud.csproj --configuration Release
Expand All @@ -27,8 +27,13 @@ jobs:
aws configure set aws_secret_access_key ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws configure set region ${{ secrets.AWS_REGION }}
aws elasticbeanstalk create-application-version \
--application-name ${{ secrets.AWS_ELASTIC_BEANSTALK_APP_NAME }} \
--version-label $GITHUB_SHA
aws elasticbeanstalk update-environment \
--application-name ${{ secrets.AWS_ELASTIC_BEANSTALK_APP_NAME }} \
--environment-name ${{ secrets.AWS_ELASTIC_BEANSTALK_ENV_NAME }}
--environment-name ${{ secrets.AWS_ELASTIC_BEANSTALK_ENV_NAME }} \
--version-label $GITHUB_SHA
env:
DOTNET_ROOT: ${{ secrets.DOTNET_ROOT }}

0 comments on commit 8701aab

Please sign in to comment.