File tree 6 files changed +47
-35
lines changed
6 files changed +47
-35
lines changed Original file line number Diff line number Diff line change
1
+ name : Deploy to GitHub Pages
2
+ on :
3
+ push :
4
+ branches :
5
+ - main
6
+
7
+ jobs :
8
+ deploy :
9
+ runs-on : ubuntu-latest
10
+
11
+ steps :
12
+ - name : Checkout
13
+ uses : actions/checkout@v2
14
+ with :
15
+ persist-credentials : false
16
+
17
+ - name : Install Rust Toolchain
18
+ uses : actions-rs/toolchain@v1
19
+ with :
20
+ toolchain : stable
21
+
22
+ - name : Install and Build
23
+ run : build.sh
24
+
25
+ - name : Deploy
26
+
27
+ with :
28
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
29
+ BRANCH : gh-pages
30
+ FOLDER : static
Original file line number Diff line number Diff line change @@ -151,33 +151,5 @@ wasm-pack.log
151
151
bin /
152
152
pkg /
153
153
dist /
154
-
155
-
156
- # Added by cargo
157
- #
158
- # already existing elements were commented out
159
-
160
- # /target
161
- # Cargo.lock
162
-
163
-
164
- # Added by cargo
165
- #
166
- # already existing elements were commented out
167
-
168
- # /target
169
-
170
-
171
- # Added by cargo
172
- #
173
- # already existing elements were commented out
174
-
175
- # /target
176
-
177
-
178
- # Added by cargo
179
- #
180
- # already existing elements were commented out
181
-
182
- # /target
183
- # Cargo.lock
154
+ static /*
155
+ ! static /index.html
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
- wasm-pack build --dev --target web --out-name wasm --out-dir ./static
2
+ wasm-pack build --dev --target web --out-name wasm --out-dir ./static && rm ./static/.gitignore
Original file line number Diff line number Diff line change 1
- use crate :: components:: Search ;
2
1
use yew:: prelude:: * ;
3
2
4
3
pub struct Home { }
@@ -21,7 +20,7 @@ impl Component for Home {
21
20
22
21
fn view ( & self ) -> Html {
23
22
html ! {
24
- <Search / >
23
+ <h1> { "Developers" } </h1 >
25
24
}
26
25
}
27
26
}
Original file line number Diff line number Diff line change 1
1
mod home;
2
- mod search;
3
2
4
3
pub use home:: * ;
5
- pub use search:: * ;
Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ < html lang ="en ">
3
+ < head >
4
+ < meta charset ="utf-8 " />
5
+ < title > Developers</ title >
6
+ < script type ="module ">
7
+ import init from "/wasm.js" ;
8
+ init ( ) ;
9
+ </ script >
10
+ < link rel ="shortcut icon " href ="# " />
11
+ </ head >
12
+ < body > </ body >
13
+ </ html >
You can’t perform that action at this time.
0 commit comments