Skip to content

fix(db): support arbitrary test directories #760

fix(db): support arbitrary test directories

fix(db): support arbitrary test directories #760

Workflow file for this run

name: Release
on:
pull_request_review:
types:
- submitted
permissions:
contents: read
jobs:
fast-forward:
if: |
github.event.pull_request.head.ref == 'develop' &&
github.event.pull_request.base.ref == 'main' &&
github.event.review.state == 'approved'
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
outputs:
release_tag: ${{ steps.latest-release.outputs.tagName }}
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- run: |
git checkout main
git merge --ff-only "${{ github.event.pull_request.head.sha }}"
git push origin main
- id: latest-release
run: |
latest=$(gh release list --limit 1 --json tagName --jq '.[].tagName')
gh release edit $latest --latest --prerelease=false
echo "tagName=$latest" >> $GITHUB_OUTPUT
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
commit:
name: Publish Brew and Scoop
needs:
- fast-forward
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version-file: go.mod
cache: true
- id: app-token
uses: actions/create-github-app-token@v2
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
owner: ${{ github.repository_owner }}
repositories: |
homebrew-tap
scoop-bucket
- run: go run tools/publish/main.go ${{ needs.fast-forward.outputs.release_tag }}
env:
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
compose:
name: Bump self-hosted versions
needs:
- fast-forward
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version-file: go.mod
cache: true
- id: app-token
uses: actions/create-github-app-token@v2
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
owner: ${{ github.repository_owner }}
repositories: |
supabase
- run: go run tools/selfhost/main.go
env:
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
changelog:
name: Publish changelog
needs:
- fast-forward
- commit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version-file: go.mod
cache: true
- id: app-token
uses: actions/create-github-app-token@v2
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
owner: ${{ github.repository_owner }}
repositories: |
supabase
cli
- run: go run tools/changelog/main.go ${{ secrets.SLACK_CHANNEL }}
env:
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
SLACK_TOKEN: ${{ secrets.SLACK_TOKEN }}
docs:
name: Publish reference docs
needs:
- fast-forward
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version-file: go.mod
cache: true
- id: app-token
uses: actions/create-github-app-token@v2
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
owner: ${{ github.repository_owner }}
repositories: |
supabase
- run: go run docs/main.go ${{ needs.fast-forward.outputs.release_tag }} | go run tools/bumpdoc/main.go apps/docs/spec/cli_v1_commands.yaml
env:
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}