diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 80799a5..064397d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -67,13 +67,34 @@ jobs: cmake --build --preset release-win --target package # Create release if on built on a tag - - name: Create/Update release + - if: startsWith(github.ref, 'refs/tags/') + name: Create/Update release uses: ncipollo/release-action@v1 with: allowUpdates: true draft: true artifacts: 'cmake-build-release-win/Kemai-*.msi' + # Create continuous release on some branches + - if: github.ref == 'refs/heads/develop' + name: Create/Update prerelease + uses: ncipollo/release-action@v1 + with: + name: 'last develop' + allowUpdates: true + updateOnlyUnreleased: true + prerelease: true + artifacts: 'cmake-build-release-win/Kemai-*.msi' + - if: github.ref == 'refs/heads/feature/98-break-ui' + name: Create/Update prerelease + uses: ncipollo/release-action@v1 + with: + name: 'UI break' + allowUpdates: true + updateOnlyUnreleased: true + prerelease: true + artifacts: 'cmake-build-release-win/Kemai-*.msi' + MacOSJob: name: MacOS runs-on: macos-latest @@ -113,3 +134,23 @@ jobs: allowUpdates: true draft: true artifacts: 'dist/Kemai-*.dmg' + + # Create continuous release on some branches + - if: github.ref == 'refs/heads/develop' + name: Create/Update prerelease + uses: ncipollo/release-action@v1 + with: + name: 'last develop' + allowUpdates: true + updateOnlyUnreleased: true + prerelease: true + artifacts: 'dist/Kemai-*.dmg' + - if: github.ref == 'refs/heads/feature/98-break-ui' + name: Create/Update prerelease + uses: ncipollo/release-action@v1 + with: + name: 'UI break' + allowUpdates: true + updateOnlyUnreleased: true + prerelease: true + artifacts: 'dist/Kemai-*.dmg'