-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (34 loc) · 1.02 KB
/
front.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Front
on:
push:
paths:
- "packages/front/**"
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
- name: Install dependencies
run: pnpm --filter front install
- name: Build
run: pnpm build:front
env:
CI: ""
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v2
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} #poner en secrets
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} #poner en secrets
aws-region: us-east-1
- name: Deploy to s3
working-directory: ./packages/front
run: |
aws s3 sync build s3://wakeup-fullstack-challenge/
aws cloudfront create-invalidation --distribution-id E1M5KJF9PNWSUC --paths "/*"