This commit is contained in:
Emil Ernerfeldt 2022-08-19 17:41:46 +02:00
parent d12c19da37
commit 08b025b4e4
8 changed files with 21 additions and 19 deletions

View file

@ -27,7 +27,7 @@ jobs:
override: true
- name: Rust Cache # cache the rust build artefacts
uses: Swatinem/rust-cache@v1
- name: Downlaod and Install Trunk binary
- name: Download and install Trunk binary
run: wget -qO- https://github.com/thedodd/trunk/releases/latest/download/trunk-x86_64-unknown-linux-gnu.tar.gz | tar -xzf-
- name: Build # build
# "${GITHUB_REPOSITORY#*/}" evaluates into the name of the repository

View file

@ -99,7 +99,7 @@ jobs:
toolchain: 1.61.0
target: wasm32-unknown-unknown
override: true
- name: Downlaod and Install Trunk binary
- name: Download and install Trunk binary
run: wget -qO- https://github.com/thedodd/trunk/releases/latest/download/trunk-x86_64-unknown-linux-gnu.tar.gz | tar -xzf-
- name: Build
run: ./trunk build

View file

@ -61,10 +61,10 @@ We use [Trunk](https://trunkrs.dev/) to build for web target.
1. Just run `trunk build --release`.
2. It will generate a `dist` directory as a "static html" website
3. Upload the `dist` directory to any of the numerous free hosting websites including [GitHub Pages](https://docs.github.com/en/free-pro-team@latest/github/working-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site).
4. we already provide a workflow that auto-deploys our app to github pages if you enable it.
> To enable Github Pages, you need to go to Respository -> Settings -> Pages -> Source -> set to `gh-pages` branch and `/` (root).
4. we already provide a workflow that auto-deploys our app to GitHub pages if you enable it.
> To enable Github Pages, you need to go to Repository -> Settings -> Pages -> Source -> set to `gh-pages` branch and `/` (root).
>
> If `gh-pages` is not availabe in `Source`, just create and push a branch called `gh-pages` and it should be available.
> If `gh-pages` is not available in `Source`, just create and push a branch called `gh-pages` and it should be available.
You can test the template app at <https://emilk.github.io/eframe_template/>.

View file

@ -1,5 +1,5 @@
{
"name": "Egui Template PWA",
"name": "egui Template PWA",
"short_name": "egui-template-pwa",
"icons": [
{

View file

@ -8,3 +8,4 @@ cargo fmt --all -- --check
cargo clippy --workspace --all-targets --all-features -- -D warnings -W clippy::all
cargo test --workspace --all-targets --all-features
cargo test --workspace --doc
trunk build

View file

@ -112,6 +112,7 @@
transform: rotate(360deg);
}
}
</style>
</head>