Skip to content

Commit

Permalink
ci: run publish workflow on pushes to maintenance branches
Browse files Browse the repository at this point in the history
Run workflow publish also for pushes to the maintenance branches such as `1.x`.
  • Loading branch information
jojomatik committed Oct 12, 2022
1 parent f0c27ec commit e6d4a9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
name: Build and publish
on:
push:
branches: [main, beta]
branches: [main, beta, '[0-9].x', '[0-9].[0-9].x']
release:
types:
- published

jobs:
semantic-release:
if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/beta' }}
if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
name: Create a semantic release
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit e6d4a9b

Please sign in to comment.