Skip to content

ci: fix deploy job

ci: fix deploy job #4

Workflow file for this run

name: Production
on:
push:
branches:
- "main"
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v4
- run: yarn
- run: yarn lint
- run: yarn test
deploy:
runs-on: ubuntu-latest
needs: test
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v4
- run: yarn
- run: yarn build
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: eu-north-1
- name: Upload assets
run: aws s3 sync dist/ s3://$S3_BUCKET_NAME/ --acl public-read --cache-control no-cache
env:
S3_BUCKET_NAME: ${{ secrets.AWS_S3_BUCKET }}