Trigger CI release build from all upstream branches
... but only publish CI releases from master branch.
MODIFY
.github/workflows/linux-release.yml
.github/workflows/linux-release.yml
@@ -69,6 +69,7 @@ jobs:
- name: continuous release
uses: softprops/action-gh-release@v1
+ if: github.ref == 'refs/heads/master'
with:
files: Ripes*.AppImage*
tag_name: continuous
@@ -77,7 +78,7 @@ jobs:
- name: tagged release
uses: softprops/action-gh-release@v1
- if: startsWith(github.ref, 'refs/tags/')
+ if: (github.ref == 'refs/heads/master') && (startsWith(github.ref, 'refs/tags/'))
with:
files: Ripes*.AppImage*
env:

MODIFY
.github/workflows/mac-release.yml
.github/workflows/mac-release.yml
@@ -52,6 +52,7 @@ jobs:
- name: continuous release
uses: softprops/action-gh-release@v1
+ if: github.ref == 'refs/heads/master'
with:
files: ${{ env.APPNAME }}.zip
tag_name: continuous
@@ -60,7 +61,7 @@ jobs:
- name: tagged release
uses: softprops/action-gh-release@v1
- if: startsWith(github.ref, 'refs/tags/')
+ if: (github.ref == 'refs/heads/master') && (startsWith(github.ref, 'refs/tags/'))
with:
files: ${{ env.APPNAME }}.zip
env:

MODIFY
.github/workflows/release_setup.yml
.github/workflows/release_setup.yml
@@ -3,13 +3,14 @@ name: Release setup
on:
push:
branches:
- - master
+ - '*'
jobs:
release-setup:
runs-on: ubuntu-latest
steps:
- uses: "marvinpinto/action-automatic-releases@latest"
+ if: github.ref == 'refs/heads/master'
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "continuous"

MODIFY
.github/workflows/windows-release.yml
.github/workflows/windows-release.yml
@@ -54,6 +54,7 @@ jobs:
- name: continuous release
uses: softprops/action-gh-release@v1
+ if: github.ref == 'refs/heads/master'
with:
files: ${{ env.APPNAME }}
tag_name: continuous
@@ -62,7 +63,7 @@ jobs:
- name: tagged release
uses: softprops/action-gh-release@v1
- if: startsWith(github.ref, 'refs/tags/')
+ if: (github.ref == 'refs/heads/master') && (startsWith(github.ref, 'refs/tags/'))
with:
files: ${{ env.APPNAME }}
env:

Trigger CI release build from all upstream branches

... but only publish CI releases from master branch.