Skip to content

Merge pull request #12 from TomasKetterer/changeWorkFlow #28

Merge pull request #12 from TomasKetterer/changeWorkFlow

Merge pull request #12 from TomasKetterer/changeWorkFlow #28

Workflow file for this run

name: DeployToBucket
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: '18.18.0'
- name: Install dependencies and build project
run: |
npm install
npm run build
- name: S3 Sync
uses: jakejarvis/[email protected]
with:
args: --delete
env:
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: 'us-east-1'
SOURCE_DIR: './build'