Skip to content

Commit

Permalink
fix(ci): only run cargo publish action on tag pushes (#281)
Browse files Browse the repository at this point in the history
  • Loading branch information
jxs authored May 25, 2023
1 parent 109f2e6 commit 5a31e06
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/cargo-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ name: Publish a release to crates.io

on:
push:
branches:
- 'main'
tags:
- "[0-9]+.[0-9]+.[0-9]+"

Expand Down Expand Up @@ -54,4 +52,4 @@ jobs:
with:
command: publish
args: --all-features refinery-cli
args: --token $CARGO_TOKEN
args: --token $CARGO_TOKEN

0 comments on commit 5a31e06

Please sign in to comment.