Skip to content

automate deployment w/ github actions #1

automate deployment w/ github actions

automate deployment w/ github actions #1

name: Deploy Skeescore
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies
run: npm install
working-directory: .
- name: Build
run: npm run build
working-directory: .
- name: Deploy to S3
uses: jakejarvis/s3-sync-action@master
with:
args: --acl public-read
env:
SOURCE_DIR: ./dist/

Check failure on line 32 in .github/workflows/build-deploy-client-to-s3.yaml

View workflow run for this annotation

GitHub Actions / Deploy Skeescore

Invalid workflow file

The workflow is not valid. .github/workflows/build-deploy-client-to-s3.yaml (Line: 32, Col: 13): A mapping was not expected
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}