Skip to content

Commit d0301ed

Browse files
committed
Add deploy step
1 parent 6efeff2 commit d0301ed

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

.github/workflows/deploy-to-aws.yml

+17-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
name: Deploy site to AWS
22

3-
on: push
3+
on:
4+
push:
5+
pull_request:
6+
branches:
7+
- main
48

59
jobs:
6-
deploy:
10+
build_and_deploy:
11+
name: Build and deploy
712
runs-on: ubuntu-latest
813
steps:
914
- name: Checkout repo
@@ -21,4 +26,13 @@ jobs:
2126
run_install: true
2227

2328
- name: Build site
24-
run: pnpm run build
29+
run: pnpm run build
30+
31+
- name: Deploy to AWS
32+
if: github.event_name == 'push'
33+
uses: onramper/[email protected]
34+
with:
35+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
36+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
37+
domain: finalelua.fizzbin.us
38+
publish_dir: ./build

0 commit comments

Comments
 (0)