From ac9d0788f67a37a13df91b574ffb18d473994ca4 Mon Sep 17 00:00:00 2001 From: Gamunu Balagalla Date: Thu, 11 Apr 2024 02:34:39 +0530 Subject: [PATCH] fix: add schema build dependency to release (#11) --- .github/workflows/build.yml | 13 +------------ .github/workflows/release.yml | 1 + 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c585df93d..32d006224 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -49,15 +49,4 @@ jobs: with: go-version-file: .go-version - name: ${{ matrix.goos }} ${{ matrix.goarch }} build - run: |- - go build \ - -trimpath \ - -buildvcs=false \ - -ldflags "-s -w" - delete-provider-schemas: - needs: build - runs-on: ubuntu-latest - steps: - - uses: geekyeggo/delete-artifact@24928e75e6e6590170563b8ddae9fac674508aa1 # v5.0.0 - with: - name: provider-schema-data + run: go build -trimpath -buildvcs=false -ldflags "-s -w" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 40650659e..a787a51f8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,6 +25,7 @@ jobs: path: ./internal/schemas/data retention-days: 1 release: + needs: generate-provider-schemas runs-on: ubuntu-latest steps: - uses: actions/checkout@v4