Skip to content

Deploy

Deploy #39

Workflow file for this run

# Upload to S3 Bucket 'aws-sap-automation' / Runs manually
name: Deploy
# Controls when the workflow will run
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- name: Configure AWS Credentials
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: ${{ secrets.AWS_DEFAULT_REGION }}
role-session-name: GithubActions
# Runs a set of commands using the runners shell
- name: deploy
run: |
aws --version
aws s3 rm s3://aws-sap-automation/ --recursive
aws s3 cp . s3://aws-sap-automation/ --recursive --exclude ".*"