Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

initial release commit #8

initial release commit

initial release commit #8

Workflow file for this run

name: Build & Deploy production
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: 📦 Checkout repository
uses: actions/checkout@v4
- name: ⚙️ Configure build env
uses: actions/setup-node@v3
with:
node-version: 18
- name: 🛠️ Build platform
run: |
npm ci
npm run 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-west-1
- name: 🚀 Deploy AWS S3
run: |
aws s3 sync --delete public ${{ vars.AWS_S3_BUCKET_URL }}
aws cloudfront create-invalidation --distribution-id ${{ vars.CF_DISTRIBUTION_ID }} --paths "/*"