Skip to content

Commit 86f979e

Browse files
committed
Initial commit
0 parents  commit 86f979e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+8077
-0
lines changed

.github/workflows/client.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Host Website on Github Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions:
9+
pages: write
10+
id-token: write
11+
12+
env:
13+
public_url: "https://xls.feldera.io/"
14+
API_HOST: "https://xls.fly.dev"
15+
16+
jobs:
17+
build-github-pages:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v4 # repo checkout
21+
- name: Setup toolchain for wasm
22+
run: |
23+
rustup update stable
24+
rustup default stable
25+
rustup set profile minimal
26+
rustup target add wasm32-unknown-unknown
27+
- name: Rust Cache # cache the rust build artefacts
28+
uses: Swatinem/rust-cache@v2
29+
- name: Download and install Trunk binary
30+
run: wget -qO- https://github.com/thedodd/trunk/releases/latest/download/trunk-x86_64-unknown-linux-gnu.tar.gz | tar -xzf-
31+
- name: Build # build
32+
# Environment $public_url resolves to the github project page.
33+
# If using a user/organization page, remove the `${{ github.event.repository.name }}` part.
34+
# using --public-url something will allow trunk to modify all the href paths like from favicon.ico to repo_name/favicon.ico .
35+
# this is necessary for github pages where the site is deployed to username.github.io/repo_name and all files must be requested
36+
# relatively as eframe_template/favicon.ico. if we skip public-url option, the href paths will instead request username.github.io/favicon.ico which
37+
# will obviously return error 404 not found.
38+
run: ./trunk build --release --public-url $public_url --config client/Trunk.toml
39+
- name: Upload docs
40+
uses: actions/upload-pages-artifact@v1
41+
with:
42+
path: client/dist
43+
44+
# Deployment job
45+
deploy:
46+
# Only deploy on main
47+
if: ${{ github.ref == 'refs/heads/main' }}
48+
runs-on: ubuntu-latest
49+
needs: build-github-pages
50+
steps:
51+
- name: Deploy to GitHub Pages
52+
id: deployment
53+
uses: actions/deploy-pages@v2

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
target
2+
.idea

0 commit comments

Comments
 (0)