Skip to content

Commit

Permalink
Add Trino to GH Action, try to fix release-gen code
Browse files Browse the repository at this point in the history
  • Loading branch information
GavinRay97 committed Jan 9, 2025
1 parent aeadb7e commit 882c8a1
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/build-connectors-action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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 }}

0 comments on commit 882c8a1

Please sign in to comment.