Skip to content

Commit

Permalink
add caching
Browse files Browse the repository at this point in the history
arcadeperfect committed Aug 27, 2024
1 parent 833ede9 commit ae87282
Showing 1 changed file with 2 additions and 46 deletions.
48 changes: 2 additions & 46 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,42 +1,3 @@
# 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/github-pages-deploy-action@4.1.5
# 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:
@@ -88,14 +49,9 @@ jobs:
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/github-pages-deploy-action@4.1.5
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
folder: . # Deploy the entire repository
clean: false # Don't remove existing files

0 comments on commit ae87282

Please sign in to comment.