-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7586c86
commit bfc5985
Showing
14 changed files
with
3,393 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: deploy | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
env: | ||
RUSTFLAGS: --cfg=web_sys_unstable_apis | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install Rust | ||
id: toolchain | ||
uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: nightly-2023-12-02 | ||
targets: "wasm32-unknown-unknown" | ||
components: "rustfmt" | ||
|
||
- name: Set rust toolchain variable | ||
run: echo "RUSTUP_TOOLCHAIN=${{steps.toolchain.outputs.name}}" >> $GITHUB_ENV | ||
|
||
- name: Check formatting | ||
run: cargo fmt --check | ||
|
||
- name: Set up Rust cache | ||
uses: Swatinem/rust-cache@v2 | ||
|
||
- name: Install cargo tools | ||
run: | | ||
pip install cargo-lambda | ||
cargo install --locked cargo-leptos | ||
- name: Deploy lambda | ||
run: | | ||
cargo leptos build --release | ||
cargo lambda build --release --features=ssr --no-default-features | ||
cargo lambda deploy --include target/site --enable-function-url | ||
env: | ||
LEPTOS_OUTPUT_NAME: ${{ vars.LEPTOS_OUTPUT_NAME }} | ||
AWS_DEFAULT_REGION: ${{ vars.AWS_DEFAULT_REGION }} | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Generated by Cargo | ||
# will have compiled files and executables | ||
/target/ | ||
pkg | ||
|
||
# These are backup files generated by rustfmt | ||
**/*.rs.bk | ||
|
||
# node e2e test tools and outputs | ||
node_modules/ | ||
test-results/ | ||
end2end/playwright-report/ | ||
playwright/.cache/ |
Oops, something went wrong.