-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e2ac22c
commit 833ede9
Showing
1 changed file
with
63 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,42 @@ | ||
# name: Deploy to GitHub Pages | ||
|
||
# on: | ||
# push: | ||
# branches: [ main ] | ||
|
||
# jobs: | ||
# build-and-deploy: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@v2 | ||
|
||
# - name: Install Rust | ||
# uses: actions-rs/toolchain@v1 | ||
# with: | ||
# toolchain: stable | ||
# target: wasm32-unknown-unknown | ||
# override: true | ||
|
||
# - name: Install wasm-bindgen-cli | ||
# run: cargo install wasm-bindgen-cli | ||
|
||
# - name: Build | ||
# run: | | ||
# cargo build --release --target wasm32-unknown-unknown | ||
# wasm-bindgen --out-dir ./out/ --target web ./target/wasm32-unknown-unknown/release/bevy_wireframe.wasm | ||
|
||
# - name: Prepare Deployment Directory | ||
# run: | | ||
# mkdir -p public/out | ||
# cp -r ./out/* public/out/ | ||
|
||
# - name: Deploy to GitHub Pages | ||
# uses: JamesIves/[email protected] | ||
# with: | ||
# branch: gh-pages | ||
# folder: public # Deploy the public directory which contains the out subdirectory and other root files | ||
# clean: false # Don't remove existing files, as we want to keep other files in the root directory | ||
|
||
name: Deploy to GitHub Pages | ||
|
||
on: | ||
|
@@ -10,6 +49,30 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Cache Cargo registry | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.cargo/registry | ||
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-cargo-registry- | ||
- name: Cache Cargo index | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.cargo/index | ||
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-cargo-index- | ||
- name: Cache Cargo build | ||
uses: actions/cache@v3 | ||
with: | ||
path: target | ||
key: ${{ runner.os }}-cargo-build-${{ hashFiles('**/Cargo.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-cargo-build- | ||
- name: Install Rust | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
|