Skip to content

Commit

Permalink
ci: release job run on main and has tag
Browse files Browse the repository at this point in the history
  • Loading branch information
anoriqq authored Jul 21, 2022
1 parent 1b2c91e commit f8c937f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@ name: release

on:
push:
branches:
- main
tags:
- 'v*'

jobs:
release:
if: endsWith(github.ref, 'main')
if: ${{ github.ref_type == 'tag' && github.event.base_ref=='refs/heads/main' }}
runs-on: ubuntu-latest
steps:

Expand Down

0 comments on commit f8c937f

Please sign in to comment.