diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 5a3ee03..f261991 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,10 +1,11 @@ name: Deploy to S3 on: - push: - branches: - - main - workflow_dispatch: + workflow_dispatch: + inputs: + branch: + description: 'Branch to deploy' + required: true jobs: deploy: @@ -13,6 +14,8 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v2 + with: + ref: ${{ github.event.inputs.branch }} # Use the selected branch from the input - name: Set up AWS CLI uses: aws-actions/configure-aws-credentials@v2