Skip to content

Commit

Permalink
Initial
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexKaravaev committed Aug 24, 2024
0 parents commit e1f4b08
Show file tree
Hide file tree
Showing 52 changed files with 64,840 additions and 0 deletions.
1 change: 1 addition & 0 deletions .direnv/flake-profile
1 change: 1 addition & 0 deletions .direnv/flake-profile-5-link
8 changes: 8 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
*
!/src
!/content
!/public
!build.rs
!rust-toolchain.toml
!tailwind.config.js
!Cargo.*
53 changes: 53 additions & 0 deletions .github/workflows/gh-pages-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@

name: Build Rust & Deploy Leptos Page

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Run workspace tests
run: cargo test --workspace --verbose
- name: Setup Pages
uses: actions/configure-pages@v3
# Build with trunk-rs
- name: Set up Rust
uses: dtolnay/rust-toolchain@nightly
with:
targets: wasm32-unknown-unknown
toolchain: nightly-x86_64-unknown-linux-gnu
components: rust-src
- name: Install Trunk
uses: mbround18/[email protected]
- name: Build and Deploy Leptos Directory
run: cd crates/ && cd leptos-site/ && trunk build --release
- name: Upload artifact
uses: actions/upload-pages-artifact@v2

# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target
Loading

0 comments on commit e1f4b08

Please sign in to comment.