Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy to AWS instead of Vercel #37

Merged
merged 2 commits into from
Dec 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/workflows/deploy-to-aws.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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 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
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -17,7 +17,7 @@
"devDependencies": {
"@nick-mazuk/eslint-config": "0.8.27",
"@nick-mazuk/ui-config": "0.10.64",
"@sveltejs/adapter-vercel": "1.0.0-next.32",
"@sveltejs/adapter-static": "1.0.0-next.13",
"@sveltejs/kit": "1.0.0-next.138",
"@types/fs-extra": "9.0.9",
"@types/js-search": "1.4.0",
@@ -43,7 +43,6 @@
"@docsearch/js": "3",
"@nick-mazuk/lib": "0.8.54",
"@nick-mazuk/ui-svelte": "0.29.19",
"@sveltejs/adapter-static": "1.0.0-next.13",
"date-fns": "2.23.0",
"js-search": "2.0.0",
"marked": "^11.1.1",
175 changes: 3 additions & 172 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/routes/__layout.svelte
Original file line number Diff line number Diff line change
@@ -22,6 +22,8 @@
const githubRepoUrl = 'https://github.com/finale-lua/lua-scripts'
const facebookGroupUrl = 'https://www.facebook.com/groups/742277119576336/'

export const prerender = true

const helpPages: TocItems = [
{
text: 'Install plugin',
2 changes: 1 addition & 1 deletion src/routes/docs/rgp-lua.svelte
Original file line number Diff line number Diff line change
@@ -60,7 +60,7 @@ Lua is case sensitive. The basic Lua syntax is very similar to other computer la

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.

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 :
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 :

\`\`\`lua
print (math.random(1, 10))
Loading
Loading