Skip to content

Sean Front End CI/CD #6

Sean Front End CI/CD

Sean Front End CI/CD #6

name: Sean Front End CI/CD
on:
workflow_dispatch:
push:
branches: [ sean-fe-cicd ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: sean-fe-cicd
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 22.x
- name: Install dependencies
run: npm install
working-directory: sample-ts-react
- name: Run build script
run: npm run build
working-directory: sample-ts-react
- name: Upload to S3
env:
AWS_ACCESS_KEY_ID: ${{ secrets.SEAN_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.SEAN_AWS_SECRET_ACCESS_KEY }}
AWS_REGION: 'ap-southeast-2'
run: |
aws s3 cp ./dist s3://sample-ts-react-automation-test --recursive
working-directory: sample-ts-react