Skip to content

updating cicd script #3

updating cicd script

updating cicd script #3

name: xyzphotography
on:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "18.x"
cache: "yarn"
- name: Installing dependencies...
run: yarn
- name: Building...
run: yarn build
- name: Configuring 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: us-east-1
- name: Copying files...
run: |
aws s3 sync ./out s3://xyzphotography/