Skip to content

[no-Jira] Remove unused packages #337

[no-Jira] Remove unused packages

[no-Jira] Remove unused packages #337

Workflow file for this run

name: Amplify Preview
on:
pull_request:
types: [labeled]
jobs:
deploy:
if: contains(github.event.label.name, 'Preview Environment')
runs-on: ubuntu-latest
continue-on-error: true
permissions:
id-token: write
pull-requests: write
steps:
- uses: actions/checkout@v3
- name: configure AWS credentials
id: creds
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: us-east-1
role-to-assume: ${{ secrets.AWS_GITHUB_ACTIONS_ROLE }}
output-credentials: true
- name: deploy PR preview
uses: CruGlobal/amplify-preview-actions@sed-replace-all
with:
branch_name: ${{ github.head_ref }}
amplify_command: deploy
env:
AWS_ACCESS_KEY_ID: ${{ steps.creds.outputs.aws-access-key-id }}
AWS_SECRET_ACCESS_KEY: ${{ steps.creds.outputs.aws-secret-access-key }}
AmplifyAppId: ${{ secrets.AMPLIFY_APP_ID }}
AWS_REGION: 'us-east-1'
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
EnvironmentVariables: 'SITE_URL=https://${{ github.head_ref }}.${{ secrets.AMPLIFY_APP_ID }}.amplifyapp.com'