We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6efeff2 commit d0301edCopy full SHA for d0301ed
.github/workflows/deploy-to-aws.yml
@@ -1,9 +1,14 @@
1
name: Deploy site to AWS
2
3
-on: push
+on:
4
+ push:
5
+ pull_request:
6
+ branches:
7
+ - main
8
9
jobs:
- deploy:
10
+ build_and_deploy:
11
+ name: Build and deploy
12
runs-on: ubuntu-latest
13
steps:
14
- name: Checkout repo
@@ -21,4 +26,13 @@ jobs:
21
26
run_install: true
22
27
23
28
- 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