removed workflows from pullrequest trigger

This commit is contained in:
2025-11-09 19:33:04 +01:00
parent 451015d2f2
commit 6d2f76eb72
2 changed files with 18 additions and 23 deletions

View File

@@ -5,8 +5,6 @@ on:
branches: ["main"] branches: ["main"]
paths: paths:
- "Cargo.toml" - "Cargo.toml"
pull_request:
branches: ["main"]
env: env:
CARGO_TERM_COLOR: always CARGO_TERM_COLOR: always

View File

@@ -1,29 +1,26 @@
name: Rust name: Rust
on: on:
push: push:
branches: [ "main" ] branches: ["main"]
paths: paths:
- 'Cargo.toml' - "Cargo.toml"
pull_request:
branches: [ "main" ]
env: env:
CARGO_TERM_COLOR: always CARGO_TERM_COLOR: always
jobs: jobs:
build: build:
runs-on: ubuntu-latest
runs-on: ubuntu-latest steps:
- uses: actions/checkout@v4
steps: - name: Build
- uses: actions/checkout@v4 run: cargo build --verbose
- name: Build - name: Run tests
run: cargo build --verbose run: cargo test --verbose
- name: Run tests - name: Publish to crates.io
run: cargo test --verbose env:
- name: Publish to crates.io CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}
env: run: |
CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_IO_TOKEN }} cargo publish --verbose
run: |
cargo publish --verbose