Skip to content

Commit

Permalink
fix: workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
teckmk committed Aug 8, 2024
1 parent 7092f73 commit 9a81239
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@ name: CI

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

pull_request:


Expand Down Expand Up @@ -51,7 +50,7 @@ jobs:

build_and_deploy:
name: Build and Deploy to Crates.io
if: startsWith(github.event.workflow_run.head_sha, 'refs/tags/')
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
needs:
- build_and_test
uses: ./.github/workflows/cd.yml
Expand Down

0 comments on commit 9a81239

Please sign in to comment.