forked from finale-lua/jw-lua-scripts-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (34 loc) · 922 Bytes
/
deploy-to-aws.yml
File metadata and controls
40 lines (34 loc) · 922 Bytes
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
40
name: Deploy site to AWS
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build_and_deploy:
name: Build and deploy
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: '16'
- name: Install dependencies
uses: pnpm/action-setup@v4
with:
version: 8
run_install: true
- name: Build site
run: pnpm run prebuild && pnpm run build
- name: Deploy to AWS
if: github.event_name == 'push'
uses: onramper/action-deploy-aws-static-site@v3.2.0
with:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
domain: finalelua.com
publish_dir: ./build