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"]
paths:
- "Cargo.toml"
pull_request:
branches: ["main"]
env:
CARGO_TERM_COLOR: always

View File

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