Skip to content

Commit b50b722

Browse files
committed
erp
1 parent 1d50335 commit b50b722

File tree

1 file changed

+8
-24
lines changed

1 file changed

+8
-24
lines changed

.github/workflows/pages.yml

+8-24
Original file line numberDiff line numberDiff line change
@@ -8,47 +8,31 @@ on:
88
branches:
99
- main
1010
workflow_dispatch:
11-
# workflow_run:
12-
# workflows: [Continuous integration]
13-
# types: [completed]
14-
# branches: [main]
1511

1612
jobs:
1713
release:
1814
runs-on: ubuntu-latest
1915
steps:
20-
# Checkout the repository
2116
- uses: actions/checkout@v2
2217

23-
# Install the stable toolchain for Rust and target WASM
24-
- uses: actions-rs/toolchain@v1
18+
- name: Install Rust toolchain
19+
uses: actions-rs/toolchain@v1
2520
with:
2621
toolchain: stable
2722
target: wasm32-unknown-unknown
2823

29-
# Cache Rust build artifacts
3024
- name: Rust Cache
3125
uses: Swatinem/rust-cache@v1
32-
33-
# Build the WASM with trunk
26+
27+
- name: Install Trunk
28+
uses: jetli/trunk-action@v0.1.0
29+
3430
- name: Build with Trunk
35-
- uses: jetli/trunk-action@v0.1.0
36-
with:
37-
public_url: "https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}"
38-
-name: kill
39-
- run: trunk build --release --public-url $public_url
40-
env:
41-
public_url: "https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}"
42-
43-
# Use wasm-bindgen to prepare the bindings
44-
- name: Use wasm-bindgen
45-
uses: jetli/wasm-bindgen-action@v0.1.0
31+
run: |
32+
trunk build --release --public-url "https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}"
4633
47-
# Deploy to GitHub Pages
4834
- name: Deploy
4935
uses: JamesIves/github-pages-deploy-action@v4
5036
with:
5137
folder: dist
52-
# This option will not maintain any history of your previous pages deployment
53-
# Set to false if you want all page builds to be committed to your gh-pages branch history
5438
single-commit: true

0 commit comments

Comments
 (0)