Skip to content

Commit 4a1db09

Browse files
committed
Deploy to AWS instead of Vercel
Added AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY to secrets
1 parent 26187c3 commit 4a1db09

File tree

6 files changed

+55
-192
lines changed

6 files changed

+55
-192
lines changed

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

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Deploy site to AWS
2+
3+
on:
4+
push:
5+
pull_request:
6+
branches:
7+
- main
8+
9+
jobs:
10+
build_and_deploy:
11+
name: Build and deploy
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout repo
15+
uses: actions/checkout@v4
16+
17+
- name: Setup node
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: '16'
21+
22+
- name: Install dependencies
23+
uses: pnpm/action-setup@v4
24+
with:
25+
version: 8
26+
run_install: true
27+
28+
- name: Build site
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.com
38+
publish_dir: ./build

package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"devDependencies": {
1818
"@nick-mazuk/eslint-config": "0.8.27",
1919
"@nick-mazuk/ui-config": "0.10.64",
20-
"@sveltejs/adapter-vercel": "1.0.0-next.32",
20+
"@sveltejs/adapter-static": "1.0.0-next.13",
2121
"@sveltejs/kit": "1.0.0-next.138",
2222
"@types/fs-extra": "9.0.9",
2323
"@types/js-search": "1.4.0",
@@ -43,7 +43,6 @@
4343
"@docsearch/js": "3",
4444
"@nick-mazuk/lib": "0.8.54",
4545
"@nick-mazuk/ui-svelte": "0.29.19",
46-
"@sveltejs/adapter-static": "1.0.0-next.13",
4746
"date-fns": "2.23.0",
4847
"js-search": "2.0.0",
4948
"marked": "^11.1.1",

pnpm-lock.yaml

+3-172
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/routes/__layout.svelte

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
const githubRepoUrl = 'https://github.com/finale-lua/lua-scripts'
2323
const facebookGroupUrl = 'https://www.facebook.com/groups/742277119576336/'
2424
25+
export const prerender = true
26+
2527
const helpPages: TocItems = [
2628
{
2729
text: 'Install plugin',

src/routes/docs/rgp-lua.svelte

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Lua is case sensitive. The basic Lua syntax is very similar to other computer la
6060
6161
However, to really take advantage of the full power of Lua, there are other very powerful tools (such as iterators, closures and coroutines) to explore.
6262
63-
Both _RGP Lua_ and _JW Lua_ include all the standard Lua modules (\`string\`, \`math\`, \`file\`, etc). Additionally, _RGP Lua_ embeds [\`luasocket\`](https://aiq0.github.io/luasocket/index.html) if you select the **Enable Debugging** option when you [configure](/docs/rgp-lua//docs/rgp-lua/rgp-lua-configuration) it (or with the \`finaleplugin.LoadLuaSocket\` option). These modules can be used in any Finale Lua script, such as :
63+
Both _RGP Lua_ and _JW Lua_ include all the standard Lua modules (\`string\`, \`math\`, \`file\`, etc). Additionally, _RGP Lua_ embeds [\`luasocket\`](https://aiq0.github.io/luasocket/index.html) if you select the **Enable Debugging** option when you [configure](/docs/rgp-lua/rgp-lua-configuration) it (or with the \`finaleplugin.LoadLuaSocket\` option). These modules can be used in any Finale Lua script, such as :
6464
6565
\`\`\`lua
6666
print (math.random(1, 10))

0 commit comments

Comments
 (0)