name: publish-release
on:
  push:
    tags:
      - '[0-9]+.[0-9]+.[0-9]+'

jobs:
  test-and-build:
    uses: ./.github/workflows/test-and-build.yaml
  publish-release:
    name: Publish GitHub release
    uses: ./.github/workflows/publish-release-type.yaml
    needs: [test-and-build]
    with:
      isReleaseCandidate: false
    secrets:
      githubToken: ${{ secrets.WEAVEWORKSBOT_TOKEN }}
