Skip to content

Commit

Permalink
Moved code from example
Browse files Browse the repository at this point in the history
  • Loading branch information
CorvusPrudens committed Dec 3, 2023
1 parent 7586c86 commit bfc5985
Show file tree
Hide file tree
Showing 14 changed files with 3,393 additions and 1 deletion.
48 changes: 48 additions & 0 deletions .github/workflows/deploy.yaml
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 }}
13 changes: 13 additions & 0 deletions .gitignore
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/
Loading

0 comments on commit bfc5985

Please sign in to comment.