Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
kafonek committed Jan 4, 2024
1 parent 6a3bb5e commit 2798ec0
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/rust-wasm-webpage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,25 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Set up Rust 1.74.0
uses: actions-rust-lang/setup-rust-toolchain@v1
- uses: actions/checkout@v3

- name: Set up Rust 1.74.0
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: '1.74.0'
target: 'wasm32-unknown-unknown'

- name: Build WebAssembly
# run in rust-wasm directory
working-directory: ./rust-wasm
run: |
cargo install wasm-pack
wasm-pack build --target web
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
toolchain: '1.74.0'
target: 'wasm32-unknown-unknown'

- name: Build WebAssembly
# run in rust-wasm directory
working-directory: ./rust-wasm
run: |
cargo install wasm-pack
wasm-pack build --target web
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./rust-wasm
exclude_assets: '.github,src/'
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./rust-wasm
exclude_assets: '.github,src/'

0 comments on commit 2798ec0

Please sign in to comment.