diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1f63dbf..6969540 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,12 +1,30 @@ -name: Publish NuGet Package +name: Release - Publish NuGet Package on: push: + paths-ignore: + - '.github/**' + - 'CHANGELOG.md' branches: - - release/* # Default release branch + - master jobs: + release-please: + runs-on: ubuntu-latest + permissions: + contents: write + pull-requests: write + issues: write + steps: + - uses: googleapis/release-please-action@v4 + with: + target-branch: ${{ github.ref_name }} + manifest-file: .release-please-manifest.json + config-file: release-please-config.json + publish: + needs: release-please + if: ${{ github.repository_owner == 'supabase-community' && startsWith(github.event.head_commit.message, 'chore(master)') && github.ref == 'refs/heads/master' && github.event_name == 'push' }} name: build, pack & publish runs-on: ubuntu-latest steps: diff --git a/.release-please-manifest.json b/.release-please-manifest.json new file mode 100644 index 0000000..58ef57e --- /dev/null +++ b/.release-please-manifest.json @@ -0,0 +1,3 @@ +{ + ".": "7.1.0" +} diff --git a/Realtime/Realtime.csproj b/Realtime/Realtime.csproj index bf0ff5a..6df9c41 100644 --- a/Realtime/Realtime.csproj +++ b/Realtime/Realtime.csproj @@ -16,8 +16,10 @@ https://github.com/supabase/realtime-csharp Realtime-csharp is written as a client library for supabase/realtime. supabase, realtime, phoenix + 7.1.0 7.1.0 + true icon.png README.md @@ -31,7 +33,7 @@ - 7.1.0 + 7.1.0 $(VersionPrefix)-$(VersionSuffix) $(VersionPrefix) diff --git a/release-please-config.json b/release-please-config.json new file mode 100644 index 0000000..d367a29 --- /dev/null +++ b/release-please-config.json @@ -0,0 +1,16 @@ +{ + "packages": { + ".": { + "changelog-path": "CHANGELOG.md", + "bump-minor-pre-major": false, + "bump-patch-for-minor-pre-major": false, + "draft": false, + "prerelease": false, + "release-type": "simple", + "extra-files": [ + "Realtime/Realtime.csproj" + ] + } + }, + "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json" +}