Skip to content

Commit

Permalink
Merge pull request #166 from supabase-community/chore/update-gh-workflow
Browse files Browse the repository at this point in the history
chore: update GitHub workflow for releases
  • Loading branch information
Andrew Smith authored Nov 22, 2023
2 parents d8139e0 + 72ad275 commit f42d176
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: CI/CD

on: [pull_request, push, workflow_dispatch]
on:
push:
branches:
- main
pull_request:
workflow_dispatch:

jobs:
test:
Expand Down Expand Up @@ -31,7 +36,7 @@ jobs:
uses: codecov/codecov-action@v1
publish:
needs: test
if: ${{ !startsWith(github.event.head_commit.message, 'bump') && !startsWith(github.event.head_commit.message, 'chore') && github.ref == 'refs/heads/main' && github.event_name == 'push' && github.repository_owner == 'supabase-community' }}
if: ${{ !startsWith(github.event.head_commit.message, 'bump') && !startsWith(github.event.head_commit.message, 'chore') && github.ref == 'refs/heads/main' && contains(fromJSON('["push", "workflow_dispatch"]'), github.event_name) && github.repository_owner == 'supabase-community' }}
runs-on: ubuntu-latest
name: "Bump version, create changelog and publish"
environment:
Expand All @@ -46,6 +51,7 @@ jobs:
with:
ref: ${{ github.ref }}
fetch-depth: 0
token: ${{ secrets.SILENTWORKS_PAT }}
- name: Python Semantic Release
id: release
uses: python-semantic-release/[email protected]
Expand Down

0 comments on commit f42d176

Please sign in to comment.