forked from opensearch-project/sql-odbc
-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (41 loc) · 1.85 KB
/
bi-connectors.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Build connectors for BI tools
on:
pull_request:
push:
paths:
- 'bi-connectors/PowerBIConnector/**'
- '.github/workflows/bi-connectors.yml'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Prepare Power BI ODBC connector for 'OpenSearch Project'
run: |
cp OpenSearchProject.pq OpenSearchProject.m
working-directory: bi-connectors/PowerBIConnector/src
- name: Pack Power BI ODBC connector
id: pack-powerbi-odbc-os-proj
run: |
zip OpenSearchProject.mez *.png *.m *.resx *.pqm
working-directory: bi-connectors/PowerBIConnector/src
- name: Prepare Power BI ODBC connector for 'Amazon OpenSearch Service'
id: prep-powerbi-odbc-amz-os-svc
run: |
mv OpenSearchProject.m AmazonOpenSearchService.m
sed -i 's/<value>OpenSearch Project<\/value>/<value>Amazon OpenSearch Service<\/value>/g' resources.resx
sed -i 's/OpenSearch Project/Amazon OpenSearch Service/g' AmazonOpenSearchService.m
sed -i 's/OpenSearchProject/AmazonOpenSearchService/g' AmazonOpenSearchService.m
sed -i 's/opensearchproject/amazonopensearchservice/g' AmazonOpenSearchService.m
working-directory: bi-connectors/PowerBIConnector/src
- name: Pack Power BI ODBC connector for 'Amazon OpenSearch Service'
id: pack-powerbi-odbc-amz-os-svc
run: |
zip AmazonOpenSearchService.mez *.png *.m *.resx *.pqm
working-directory: bi-connectors/PowerBIConnector/src
- name: Upload Power BI ODBC connectors
if: steps.pack-powerbi-odbc-os-proj.outcome == 'success' || (steps.prep-powerbi-odbc-amz-os-svc.outcome == 'success' && steps.pack-powerbi-odbc-amz-os-svc.outcome == 'success')
uses: actions/upload-artifact@v2
with:
name: PBIConnectors
path: 'bi-connectors/PowerBIConnector/src/*.mez'