Skip to content

Commit

Permalink
test04
Browse files Browse the repository at this point in the history
  • Loading branch information
evgsentrium authored Nov 5, 2024
1 parent 19933cb commit 77b238e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,15 @@ jobs:
# The type of runner that the job will run on
runs-on: ubuntu-latest

env:
AWS_AMPLIFY_REGION: ${{ vars.AWS_AMPLIFY_REGION }}
AWS_AMPLIFY_APP_ID: ${{ vars.AWS_AMPLIFY_APP_ID }}

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Deploy to Amplify
env:
AWS_AMPLIFY_REGION: ${{ vars.AWS_AMPLIFY_REGION }}
AWS_AMPLIFY_APP_ID: ${{ vars.AWS_AMPLIFY_APP_ID }}
run: |
curl --request POST \
--url https://amplify.${{ env.AWS_AMPLIFY_REGION }}.amazonaws.com/apps/${{ env.AWS_AMPLIFY_APP_ID}}/branches/${{ github.ref_name }}/jobs \
--url https://amplify.$AWS_AMPLIFY_REGION.amazonaws.com/apps/$AWS_AMPLIFY_APP_ID/branches/${{ github.ref_name }}/jobs \
--header 'Content-Type: application/json' \
--data '{"jobType": "RELEASE"}' \
--user "${{ secrets.AWS_AMPLIFY_ACCESS_KEY_ID }}:${{ secrets.AWS_AMPLIFY_SECRET_ACCESS_KEY }}" \
Expand Down

0 comments on commit 77b238e

Please sign in to comment.