Skip to content

Deploy to S3

Deploy to S3 #8

Workflow file for this run

name: Deploy to S3
on:
workflow_dispatch:
inputs:
branch:
description: 'Branch to deploy'
required: true
jobs:
deploy:
runs-on: ubuntu-latest
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
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: eu-west-1
- name: CD into project
run: |
cd ..
- name: Deploy to S3
run: |
aws s3 sync . s3://galleywood-ttc