Skip to content

Commit

Permalink
Update check.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
baoyachi authored Nov 28, 2024
1 parent 3a92941 commit 4158039
Showing 1 changed file with 32 additions and 32 deletions.
64 changes: 32 additions & 32 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,43 +93,43 @@ jobs:
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
deploy-pages:
if: github.actor!= 'dependabot[bot]'
runs-on: ubuntu-latest
needs: [ test ]
steps:
- name: Checkout repository
uses: actions/checkout@v4
# deploy-pages:
# if: github.actor!= 'dependabot[bot]'
# runs-on: ubuntu-latest
# needs: [ test ]
# steps:
# - name: Checkout repository
# uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 8
run_install: false
# - name: Setup Node.js
# uses: actions/setup-node@v4
# with:
# node-version: 18
# - uses: pnpm/action-setup@v4
# name: Install pnpm
# with:
# version: 8
# run_install: false

- name: Install Rust and wasm-pack
run: |
rustup update stable
cargo +stable install wasm-pack
# - name: Install Rust and wasm-pack
# run: |
# rustup update stable
# cargo +stable install wasm-pack

- name: Build WebAssembly module with wasm-pack
run: wasm-pack build --target bundler --out-dir ../site/pkg --release
working-directory: ./playground/wasm
# - name: Build WebAssembly module with wasm-pack
# run: wasm-pack build --target bundler --out-dir ../site/pkg --release
# working-directory: ./playground/wasm

- name: Build project
run: pnpm install && pnpm run build
working-directory: ./playground/site
# - name: Build project
# run: pnpm install && pnpm run build
# working-directory: ./playground/site

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
if: ${{github.ref == 'refs/heads/master' }}
with:
personal_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./playground/site/dist
# - name: Deploy to GitHub Pages
# uses: peaceiris/actions-gh-pages@v4
# if: ${{github.ref == 'refs/heads/master' }}
# with:
# personal_token: ${{ secrets.GITHUB_TOKEN }}
# publish_dir: ./playground/site/dist
publish-crate:
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
Expand Down

0 comments on commit 4158039

Please sign in to comment.