Skip to content

Commit

Permalink
cargo publish if new version exists
Browse files Browse the repository at this point in the history
  • Loading branch information
dcodesdev committed May 5, 2024
1 parent 1d5740e commit a5cc803
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/crates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ on:
pull_request:
branches: [main]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

jobs:
test:
Expand All @@ -23,5 +22,8 @@ jobs:
toolchain: stable
override: true

- name: Test
- name: Cargo test
run: cargo test

- name: Cargo publish
run: cargo publish || true

0 comments on commit a5cc803

Please sign in to comment.