Skip to content

Commit 1ca2c1c

Browse files
committed
chore: unify workflows similar used in python
1 parent 4234fac commit 1ca2c1c

File tree

2 files changed

+18
-37
lines changed

2 files changed

+18
-37
lines changed

.github/workflows/release-please.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,27 @@
1-
name: Publish NuGet Package
1+
name: Release - Publish NuGet Package
22

33
on:
4-
pull_request:
5-
types:
6-
- closed
4+
push:
75
branches:
8-
- "master"
9-
10-
# workflow_run:
11-
# workflows: ["release-please"]
12-
# branches: [master]
13-
# types:
14-
# - completed
15-
16-
# push:
17-
# branches:
18-
# - release/* # Default release branch
6+
- master
197

208
jobs:
9+
release-please:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
pull-requests: write
14+
issues: write
15+
steps:
16+
- uses: googleapis/release-please-action@v4
17+
with:
18+
target-branch: ${{ github.ref_name }}
19+
manifest-file: .release-please-manifest.json
20+
config-file: release-please-config.json
21+
2122
publish:
22-
if: ${{ github.event.pull_request.merged == true && github.repository_owner == 'diegofesanto' && startsWith(github.event.head_commit.message, 'chore(master)') && github.ref == 'refs/heads/master' && github.event_name == 'push' }}
23+
needs: release-please
24+
if: ${{ github.repository_owner == 'supabase-community' && startsWith(github.event.head_commit.message, 'chore(master)') && github.ref == 'refs/heads/master' && github.event_name == 'push' }}
2325
name: build, pack & publish
2426
runs-on: ubuntu-latest
2527
steps:

0 commit comments

Comments
 (0)