Skip to content

Commit d150678

Browse files
authoredDec 15, 2024
Merge pull request #37 from finale-lua/static
Deploy to AWS instead of Vercel
2 parents 26187c3 + 52b763b commit d150678

File tree

6 files changed

+57
-192
lines changed

6 files changed

+57
-192
lines changed
 

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

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Deploy site to AWS
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
build_and_deploy:
13+
name: Build and deploy
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout repo
17+
uses: actions/checkout@v4
18+
19+
- name: Setup node
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: '16'
23+
24+
- name: Install dependencies
25+
uses: pnpm/action-setup@v4
26+
with:
27+
version: 8
28+
run_install: true
29+
30+
- name: Build site
31+
run: pnpm run build
32+
33+
- name: Deploy to AWS
34+
if: github.event_name == 'push'
35+
uses: onramper/action-deploy-aws-static-site@v3.2.0
36+
with:
37+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
38+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
39+
domain: finalelua.com
40+
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)