Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions .github/workflows/create-release.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
name: Create Release
on:
push:
# run only on tags
# Release a new version every time a v6 tag is pushed.
tags:
- '**'
- '6.0.0-*'
Comment thread
bevzzz marked this conversation as resolved.
Outdated
pull_request:
# Release a new SNAPSHOT version every time a PR is merged to v6.
types: [closed]
branches: ['v6']

jobs:
release:
name: Deploy
if: startsWith(github.ref, 'refs/tags')
if: >
Comment thread
antas-marcin marked this conversation as resolved.
(github.event_name == 'push' && startsWith(github.ref, 'refs/tags'))
|| (github.event_name == 'pull_request' && github.event.pull_request.merged == true)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -39,7 +45,7 @@ jobs:
retention-days: 1
gh-release:
name: Create a GitHub Release
if: startsWith(github.ref, 'refs/tags')
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
Comment thread
antas-marcin marked this conversation as resolved.
runs-on: ubuntu-latest
needs: [ release ]
steps:
Expand Down