Skip to content

build: redacted the output.css script on main.tsx #6

build: redacted the output.css script on main.tsx

build: redacted the output.css script on main.tsx #6

Workflow file for this run

name: Deploy Mood Time to S3
on:
push:
branches:
- deploy
permissions:
id-token: write
contents: read
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
- name: Install dependencies
run: npm install
- name: Build Vite App
run: npm run build
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v2
with:
role-to-assume: arn:aws:iam::717279695137:role/moodtimegithub
aws-region: eu-west-2
- name: Deploy to S3
uses: jakejarvis/[email protected]
with:
args: --acl public-read --follow-symlinks --delete
env:
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
SOURCE_DIR: 'dist' # Vite's output directory