Skip to content

Commit d93f931

Browse files
committed
updated CI
1 parent 9be2aab commit d93f931

File tree

1 file changed

+20
-19
lines changed

1 file changed

+20
-19
lines changed

.github/workflows/ci.yml

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,32 +2,33 @@ name: Rust
22

33
on:
44
push:
5-
branches: [ "main" ]
5+
branches: ["main"]
66
pull_request:
7-
branches: [ "main" ]
7+
branches: ["main"]
88

99
env:
1010
CARGO_TERM_COLOR: always
1111

1212
jobs:
1313
build:
14-
1514
runs-on: ubuntu-latest
1615

1716
steps:
18-
- name: Checkout repository
19-
uses: actions/checkout@v4
20-
- name: Set up Rust
21-
uses: dtolnay/rust-toolchain@stable
22-
with:
23-
targets: wasm32-unknown-unknown
24-
toolchain: stable
25-
- name: Install Trunk
26-
run: cargo install trunk
27-
- name: Build and Deploy
28-
run: trunk build --release
29-
- name: Deploy to GitHub Pages
30-
uses: peaceiris/actions-gh-pages@v3
31-
with:
32-
github_token: ${{ secrets.GITHUB_TOKEN }}
33-
publish_dir: ./dist
17+
- name: Checkout repository
18+
uses: actions/checkout@v4
19+
- name: Set up Rust
20+
uses: dtolnay/rust-toolchain@stable
21+
with:
22+
targets: wasm32-unknown-unknown
23+
toolchain: stable
24+
- name: Install Trunk
25+
run: cargo install trunk
26+
- name: Build and Deploy
27+
run: trunk build --release
28+
# - name: Deploy to GitHub Pages
29+
# uses: peaceiris/actions-gh-pages@v3
30+
# with:
31+
# github_token: ${{ secrets.GITHUB_TOKEN }}
32+
# publish_dir: ./dist
33+
- name: Run another action
34+
uses: ./.github/workflows/static.yml

0 commit comments

Comments
 (0)