Skip to content

Commit

Permalink
fix: release.yaml if condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Farhad-Shabani committed Jan 2, 2024
1 parent 9dc330f commit e9c0516
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,16 @@
name: Release

on:
pull_request:
push:
branches:
- "release/*"
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+" # Push events to matching v*, i.e. v0.26.0, v1.0.0
- "v[0-9]+.[0-9]+.[0-9]+-pre.[0-9]+" # e.g. v0.26.0-pre.1

jobs:
release-check:
if: github.event_name == 'pull_request'
if: github.ref_type != 'tag'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -32,7 +31,7 @@ jobs:
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}

release:
if: github.event_name == 'push' && github.ref_type == 'tag'
if: github.ref_type == 'tag'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit e9c0516

Please sign in to comment.