From 882c8a1d470e8e3b67555534983abc8ee2fa933c Mon Sep 17 00:00:00 2001 From: Gavin Ray Date: Thu, 9 Jan 2025 14:29:41 -0500 Subject: [PATCH] Add Trino to GH Action, try to fix release-gen code --- .../workflows/build-connectors-action.yaml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-connectors-action.yaml b/.github/workflows/build-connectors-action.yaml index 5624fc6..f19d680 100644 --- a/.github/workflows/build-connectors-action.yaml +++ b/.github/workflows/build-connectors-action.yaml @@ -7,13 +7,14 @@ on: - "mysql/*" - "oracle/*" - "phoenix/*" + - "trino/*" jobs: docker-build: runs-on: ubuntu-latest strategy: matrix: - database: [snowflake, mysql, oracle] + database: [snowflake, mysql, oracle, phoenix, trino] outputs: release_tag: ${{ steps.extract_tag.outputs.tag }} @@ -87,14 +88,24 @@ jobs: cd ndc-connector-${{ matrix.database }} tar -czf package.tar.gz ./.hasura-connector + - name: Create Release + id: create_release + uses: actions/create-release@v1 + with: + tag_name: ${{ needs.docker-build.outputs.release_tag }} + release_name: Release ${{ needs.docker-build.outputs.release_tag }} + draft: false + prerelease: false + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Upload package.tar.gz to GitHub Release if: contains(github.ref, matrix.database) uses: actions/upload-release-asset@v1 with: - tag_name: ${{ needs.docker-build.outputs.tag }} # Use the correct tag output - upload_url: ${{ steps.release.outputs.upload_url }} + upload_url: ${{ steps.create_release.outputs.upload_url }} asset_path: ndc-connector-${{ matrix.database }}/package.tar.gz asset_name: package-${{ matrix.database }}.tar.gz asset_content_type: application/gzip env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file