From e8af15f9f039da213549e0597c37f1de8bafb6dd Mon Sep 17 00:00:00 2001 From: dy0gu <103767860+dy0gu@users.noreply.github.com> Date: Mon, 21 Oct 2024 00:25:53 +0100 Subject: [PATCH] ci: deploy on release only --- .github/workflows/release.yaml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index b1a7a49..af2af87 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -9,10 +9,17 @@ permissions: pull-requests: write jobs: - simple: + metadata: runs-on: ubuntu-latest + outputs: + release-created: ${{ steps.metadata.outputs.release_created }} steps: - - uses: googleapis/release-please-action@v4 + - name: Update project metadata and release pull request + id: metadata + uses: googleapis/release-please-action@v4 with: - # Updates CHANGELOG.md and creates a tagged release in github release-type: simple + deploy: + needs: [metadata] + if: ${{ needs.metadata.outputs.release-created}} + uses: ./.github/workflows/deploy.yaml