Skip to content

Add vite to build

Add vite to build #1

Workflow file for this run

# Controls when the action will run. Invokes the workflow on push events but only for the main branch
name: Deploy Website to S3
on:
pull_request:
branches:
- main
env:
AWS_REGION: us-west-1
# Permission can be added at job level or workflow level
permissions:
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout
jobs:
AssumeRoleAndCallIdentity:
runs-on: ubuntu-latest
steps:
- name: Git clone the repository
uses: actions/checkout@v3
- name: configure aws credentials
uses: aws-actions/configure-aws-credentials@v1.7.0
with:
role-to-assume: arn:aws:iam::514531162242:role/GitHubAction-AssumeRoleWithAction
role-session-name: GitHub_to_AWS_via_FederatedOIDC
aws-region: ${{ env.AWS_REGION }}
# Hello from AWS: WhoAmI
- name: Sts GetCallerIdentity
run: |
aws sts get-caller-identity
- name: Sync files to S3
run: |
aws s3 sync ./dist s3://rsgoshen.us --delete --acl public-read