This repository has been archived by the owner on Oct 31, 2024. It is now read-only.
Merge pull request #6 from topos-protocol/tl-zoom-image-adjustments #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 "/*" |