Skip to content

Commit 19382cb

Browse files
committed
fix: correct CI workflow syntax and trigger publish on releases
1 parent cd011e5 commit 19382cb

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,20 @@ jobs:
3131
run: cargo fetch
3232

3333
- name: Run clippy
34-
run: cargo clippy --all-targets --all-features -- -D warnings || true`n continue-on-error: true
34+
run: cargo clippy --all-targets --all-features -- -D warnings || true
35+
continue-on-error: true
3536

3637
- name: Run tests
37-
run: cargo test --all-features || true`n continue-on-error: true
38+
run: cargo test --all-features || true
39+
continue-on-error: true
3840

3941
- name: Build
4042
run: cargo build --release
4143

4244
publish:
4345
needs: test
4446
runs-on: ubuntu-latest
45-
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
47+
if: github.event_name == 'release' && github.event.action == 'published'
4648

4749
steps:
4850
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)