Skip to content

Commit

Permalink
pull view from git releases
Browse files Browse the repository at this point in the history
  • Loading branch information
akvlad committed Sep 5, 2024
1 parent bf7ddcd commit dcb745b
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 40 deletions.
17 changes: 17 additions & 0 deletions .github/actions/get-view/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Reusable Workflow

on:
workflow_call:
inputs:
tag:
type: string

jobs:
pull:
runs-on: ubuntu-latest
steps:
- run: mkdir view && cd view
- run: wget https://github.com/metrico/qryn-view/releases/download/$TAG/dist.zip
env:
TAG: ${{ inputs.tag }}
- run: unzip dist.zip && rm dist.zip
32 changes: 0 additions & 32 deletions .github/workflows/build-view.yml

This file was deleted.

12 changes: 6 additions & 6 deletions .github/workflows/build_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ jobs:
with:
node-version: 18
- name: build qryn-view
uses: ./.github/workflows/build-view.yml
uses: ./.github/actions/get-view
with:
node_version: 18
tag: v3.3.2
- name: Publish to NPM
if: ${{ steps.checksecrets.outputs.secretspresent }}
continue-on-error: true
Expand Down Expand Up @@ -70,9 +70,9 @@ jobs:
env:
SECRET: ${{ secrets.DOCKERHUB_TOKEN }}
- name: build qryn-view
uses: ./.github/workflows/build-view.yml
uses: ./.github/actions/get-view
with:
node_version: 18
tag: v3.3.2
- name: Set up Docker QEMU
if: ${{ steps.checkdocker.outputs.secretspresent }}
uses: docker/[email protected]
Expand Down Expand Up @@ -145,9 +145,9 @@ jobs:
env:
SECRET: ${{ secrets.DOCKERHUB_TOKEN }}
- name: build qryn-view
uses: ./.github/workflows/build-view.yml
uses: ./.github/actions/get-view
with:
node_version: 18
tag: v3.3.2
- name: Set up Docker QEMU
if: ${{ steps.checkdocker.outputs.secretspresent }}
uses: docker/[email protected]
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/node-clickhouse.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: build qryn-view
uses: ./.github/workflows/build-view.yml
uses: ./.github/actions/get-view
with:
node_version: ${{ matrix.node-version }}
tag: v3.3.2
- run: npm install
- run: npm run postinstall
- run: git submodule init
Expand Down

0 comments on commit dcb745b

Please sign in to comment.