Skip to content

Commit cecf91c

Browse files
committed
fix action
1 parent f45e7a0 commit cecf91c

File tree

1 file changed

+14
-17
lines changed

1 file changed

+14
-17
lines changed

.github/workflow/deploy.yml renamed to .github/workflows/deploy.yml

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,10 @@ jobs:
2424
- name: Checkout Repository
2525
uses: actions/checkout@v2
2626

27-
- name: Setup Rust
28-
uses: actions/setup-rust@v1
27+
- name: Setup wasm-pack
28+
uses: jetli/[email protected]
2929
with:
30-
rust-version: stable
31-
32-
- name: Install wasm-pack
33-
run: cargo install wasm-pack
30+
version: 'latest'
3431

3532
- name: Build Wasm
3633
run: wasm-pack build --target web --out-dir ./app/pkg
@@ -40,14 +37,14 @@ jobs:
4037
with:
4138
path: app
4239

43-
deploy:
44-
environment:
45-
name: github-pages
46-
url: ${{ steps.deployment.outputs.page_url }}
47-
needs: build
48-
runs-on: ubuntu-latest
49-
name: Deploy
50-
steps:
51-
- name: Deploy to GitHub Pages
52-
id: deployment
53-
uses: actions/deploy-pages@v4
40+
deploy:
41+
environment:
42+
name: github-pages
43+
url: ${{ steps.deployment.outputs.page_url }}
44+
needs: build
45+
runs-on: ubuntu-latest
46+
name: Deploy
47+
steps:
48+
- name: Deploy to GitHub Pages
49+
id: deployment
50+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)